> And, furthermore, that you could easily define special semantics > for void-context constructor calls via undef'd but typed variables, > so that you could just write: > > (my Date $date).new('June 25, 2002'); > > and have the interpreter autovivify the object.
That's pretty close to what I was thinking of, but I don't think the constructors actually have to be special. What if "my Date $date;" lets the compiler know that $date belongs to the Date class, even if it's undef? If that's the case you could call static functions as $date.foo() instead of Date.foo(), and therefore your constructor call would be simply my Date $date .= new('Jun 25, 20002'); -- Adam Lopresto ([EMAIL PROTECTED]) http://cec.wustl.edu/~adam/ perl -le '$_=(split q,",,`$^Xdoc -q japh`)[1].".";y/pj/PJ/;print'