Torsten Anders wrote:
Is there some fundamental reason, that creators like Class.new and Functor.new only partly support what their special syntax counterpart supports?
No. Ideally class ... end should only be syntactic sugar for a call to Class.new. All non-kernel language features should be like that. The object system in Oz is a proof of concept, not a polished and practical system. In practice you cannot define an object in term of the kernel language.
Having full creator procedures for every syntactic construct which can be expressed by a procedure would reduce the need for macros.
On the contrary: macros would simply define some syntactic construct with new keywords. This would allow you to choose the right tradeoff between syntactic constructs and constructor calls in your code. IMHO making everything a function call makes the code less readable.
Cheers, raph _________________________________________________________________________________ mozart-users mailing list [email protected] http://www.mozart-oz.org/mailman/listinfo/mozart-users
