[EMAIL PROTECTED] (Dan Sugalski) writes:my Joe $foo;
emits the code that, at runtime, finds the class ID of whatever Joe's in scope, instantiates a new object of that class
Uh, is that right? I don't think that "my" is a constructor, more a typing declarator.
Since any type potentially has assignment behaviour, it has to be a constructor. For example, if you've got the Joe class set such that assigning to it prints the contents to stderr, this:
my Joe $foo; $foo = 12;
should print 12 to stderr. Can't do that if you've not put at least a minimally constructed thing in the slot.
--
Dan
--------------------------------------"it's like this"------------------- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk