On Tue, Aug 27, 2002 at 02:50:27PM -0700, Steve Canfield wrote:
> Will there be automatic calling of the deserialization method for objects, 
> so that code like this DWIMs...
> 
>   my Date $bday = 'June 25, 2002';

What sort of dwimmery do you desire?

It's my understanding that variable declarations as above are just
"suggestions" to perl that the variable will have the shape and
semantics of a Date object.  No constructor will be called to create a
Date object.  Though I think there are forms that will invoke a
constructor, but I don't know what they are off hand. Maybe

        my Date $bday = new Date 'June 25, 2002';       # or
        my Date('June 25, 2002') $bday;                 # or
        my Date $bday; $bday.new('June 25, 2002');      # or
        # something else entirely.

-Scott
-- 
Jonathan Scott Duff
[EMAIL PROTECTED]

Reply via email to