On Sun, 2004-04-04 at 10:17, Leopold Toetsch wrote:
.sub __init method
is AFAIK the constructor. It gets called automatically for all parent classes and the class itself and is the best place to put attributes for objects in place and set these to their default values.
I personally want to pass arguments to the initializer ("constructor" really isn't the right term). I expect HLLs will want to do the same.
If we set a convention that the initializer is always called BUILD or CREAT(E), that's fine. I'd like to set or follow a wise convention now.
It's not going to be called either--this'll be one of those things where there'll be a property on the method marking it as the constructor.
The current scheme's really inadequate for real new methods--what we've got is more akin to an allocator rather than a real constructor.
--
Dan
--------------------------------------"it's like this"------------------- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk