Y-asc

yet another stupid compiler
Log | Files | Refs | README | git clone https://git.ne02ptzero.me/git/Y-asc

commit 974dacbfa2f2f8dc2e440e0bc39bd5bf94759a42
parent 3aa56fc9e7b43eee19f39372d7eae5c405fb9068
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Tue, 27 Jun 2017 00:20:39 +0200

Add(Tex): Add section about constants

Diffstat:
Mtex/yasc.tex | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)

diff --git a/tex/yasc.tex b/tex/yasc.tex @@ -220,6 +220,18 @@ Name & Range & Content\\ \hline \end{array}$ \subsection{Constants} + One can declare a specific variable to be never changed, in any scope, + via the keyword \texttt{\_\_const}: + \begin{lstlisting} + ubyte __const char = 'A'; + \end{lstlisting} + This \texttt{char} variable can never change value; any attempt to it + will throw an error. + Constant variables must have a initialization value, otherwise, its + utility is quite limited. + + The \texttt{\_\_const} keyword must be always between a variable + type and its name. \subsection{Declarations} \subsection{Arithmetic Operators} \subsection{Type Conversions}