[nem-en] Mutually recursive local functions.

Elifant elifantu at mail.ru
Tue Jul 3 09:45:43 CEST 2007


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?




More information about the devel-en mailing list