nested classes
Marcin 'Qrczak' Kowalczyk
qrczak at knm.org.pl
Thu Jun 21 13:00:07 EDT 2001
Mon, 18 Jun 2001 23:07:07 GMT, Mats Wichmann <xyzmats at laplaza.org> pisze:
> Java and C++ are compiled. The class definition is instructions to
> the compiler, and can be self-referential, because the /reference/ is
> not going to happen until the class is loaded - no inconsistency.
Being compiled is not necessary to be able to self-reference
everything. Haskell and Clean are usually compiled, but when they are
interpreted, they work the same way: because they use lazy evaluation,
it's normal to have every name defined in a group visible in all
the bodies.
This applies to all value definitions, not only to functions, even if
it's nonsensical, i.e. 'let x = y+1; y = x+1 in x' is only a runtime
error or an infinite loop.
--
__("< Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
\__/
^^ SYGNATURA ZASTĘPCZA
QRCZAK
More information about the Python-list
mailing list