[nem-en] nested declarations?

Maurizio Colucci maurizio.colucci at gmail.com
Thu Jan 12 14:38:23 CET 2006


> def foo (x) {
>   def val1 = {
>     def r = r + 5;
>     x + r
>   }
>   val1 + x
> }
>
> It looks better with indenation syntax enabled (just remove {, } and
> compile with -i).
>
> Hope this helps!

Very nice! Thank you.

Maurizio



More information about the devel-en mailing list