handouts/amm-faq.tex
changeset 1029 fdf87cccbf17
parent 1026 ee39fd6df150
equal deleted inserted replaced
1028:803d5ece1c07 1029:fdf87cccbf17
   149 \noindent
   149 \noindent
   150 which produce a warning about ``The syntax `x: \_*` is no longer
   150 which produce a warning about ``The syntax `x: \_*` is no longer
   151 supported for vararg splices''. This warning can be avoided by writing
   151 supported for vararg splices''. This warning can be avoided by writing
   152 \texttt{args*} instead of \texttt{args:\_*}.
   152 \texttt{args*} instead of \texttt{args:\_*}.
   153 
   153 
       
   154 \subsection*{Compile\_Block not Found in Compile.sc}
       
   155 
       
   156 When you evaluate in Ammonite parsers or the eval- and compile-functions,
       
   157 you encounter the following problem: For example in the file 
       
   158 \texttt{compile.sc} the function \texttt{compile\_stmt} function depends
       
   159 on \texttt{compile\_block} function and vice versa. This means you need
       
   160 to evaluate them together when you run the code inside the REPL (this
       
   161 problem does not occur when you run the complete file on the command
       
   162 line). You can evaluate functions in a big ``chunk'' by enclosing it
       
   163 inside \texttt{\{...\}}.
       
   164 
   154 \end{document}
   165 \end{document}
   155 
   166 
   156 %%% Local Variables: 
   167 %%% Local Variables: 
   157 %%% mode: latex
   168 %%% mode: latex
   158 %%% TeX-master: t
   169 %%% TeX-master: t