# HG changeset patch # User Christian Urban # Date 1763563866 0 # Node ID fdf87cccbf1729ef6d171faa577b31f3440e654f # Parent 803d5ece1c0776d71c7ea3bb1e61c818c992c03b updated diff -r 803d5ece1c07 -r fdf87cccbf17 handouts/amm-faq.pdf Binary file handouts/amm-faq.pdf has changed diff -r 803d5ece1c07 -r fdf87cccbf17 handouts/amm-faq.tex --- a/handouts/amm-faq.tex Tue Nov 18 12:11:53 2025 +0000 +++ b/handouts/amm-faq.tex Wed Nov 19 14:51:06 2025 +0000 @@ -151,6 +151,17 @@ supported for vararg splices''. This warning can be avoided by writing \texttt{args*} instead of \texttt{args:\_*}. +\subsection*{Compile\_Block not Found in Compile.sc} + +When you evaluate in Ammonite parsers or the eval- and compile-functions, +you encounter the following problem: For example in the file +\texttt{compile.sc} the function \texttt{compile\_stmt} function depends +on \texttt{compile\_block} function and vice versa. This means you need +to evaluate them together when you run the code inside the REPL (this +problem does not occur when you run the complete file on the command +line). You can evaluate functions in a big ``chunk'' by enclosing it +inside \texttt{\{...\}}. + \end{document} %%% Local Variables: