From: Damian Conway
> But I must say I now like Adam's
> 
>       my Date $date .= new('June 25, 2002');
> 
> much more than my own proposal.

This thread appears to have wound down, but I'm still a little confused. I
understand the above syntax could be used to pass initialization data to the
constructor, but why wouldn't the original suggestion work for an object
doesn't require it initialization data and supports lvalue assignment?

Don't the following statements have identical meaning?

my Date $date;
my Date $date = Date->new();


And admittedly, I don't have a firm grasp on how lvalue assignment would be
mapped to object methods... but wouldn't the following statements also be
identical?

$date = 'June 25, 2002';
$date->STORE('June 25, 2002');


So what again is wrong with:

my Date $date = 'June 25, 2002';


--
Garrett Goebel
IS Development Specialist

ScriptPro                   Direct: 913.403.5261
5828 Reeds Road               Main: 913.384.1008
Mission, KS 66202              Fax: 913.384.2180
www.scriptpro.com          [EMAIL PROTECTED]

Reply via email to