Jens Rieks <[EMAIL PROTECTED]> wrote: > Hi, > Chromatic and I are unsure what the best name for a constructor method is.
.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. > Leo, is it time-consuming to fix IMCC in order to make it possible to use > "new" as a method name? "new" isn't really easy to use. It's a Parrot op and second a keyword in the lexer (which mightn't be really need anymore though). > Is there something special to consider to avoid problems regarding several > languages? Is BUILD a good name for a non Perl6 constructor method? Well, constructors are class-namespace scoped anyway. So there shouldn't be a problem. > jens leo