[nem-en] Mutually recursive local functions.
Sergei Tulentsev
sergei.tulentsev at gmail.com
Tue Jul 3 10:24:24 CEST 2007
def a(p)
{
when(p > 0)
b(p - 1);
}
and b(p)
{
WriteLine(p);
a(p);
}
On 7/3/07, Elifant <elifantu at mail.ru> wrote:
>
> Hello all.
>
> Is it possible to write mutually recursive local functions in Nemerle?
>
> def a()
> b()
>
> def b()
> a()
>
> gives "unbound name 'b'"
>
> Known workarounds:
> 1. make them class methods (need to explicitly type them)
> 2. pass one as parameter to other (ugly)
>
> Are there other possibilities?
>
>
> _______________________________________________
> https://nemerle.org/mailman/listinfo/devel-en
>
--
Best wishes,
Sergei Tulentsev
Senior software engineer.
SITRONICS Telecom Solutions, Moscow
http://www.sitels.ru
mob: + 7 916 507 7112
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /mailman/pipermail/devel-en/attachments/20070703/f49362e6/attachment.html
More information about the devel-en
mailing list