HaloO,
Larry Wall wrote:
On Wed, Apr 16, 2008 at 04:29:23PM +0000, [EMAIL PROTECTED] wrote:
: my Dog $spot = .new();
:
: to
:
: my $Spot = Dog.new();
:
: when you remove the declaration.
You'd also break multiple dispatch rather badly...
Sorry, why that? Isn't the dispatch on the dynamic type
of the value stored in $spot? Or are you talking about
dispatching .new itself?
sub foo (Dog $d) {...}
foo(.new); # .new called in Dog item context?
# with $d as invocant?
Regards, TSa.
--
"The unavoidable price of reliability is simplicity"
-- C.A.R. Hoare