On Fri, 2004-04-23 at 05:42, Dan Sugalski wrote:

> 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.

(hypothetical pre-breakfasty musings)

Such as a PerlUndef with the 'expected_type' property set to 'Joe'?

(and now for breaky)

-- c

Reply via email to