Austin Hastings skribis 2004-04-23 13:33 (-0400):
> I should then be able to call class methods of Dog via $spot without further
> initialization:
>   print defined($spot);   # FALSE
>   $rover = $spot.new;
>   @breeds = $spot.list_breeds;

But shouldn't you then just use "my Class $spot = Dog" then? Or maybe
just "my $spot := Dog"?

> This is, as pointed out, just sugar for Dog::new and Dog::list_breeds, but
> it brings up the spectre of undef invocants:

:: or .? I'm confused.

>   $c->foo->bar->baz; # If foo or bar fails, what happens?

-> or .? Even more confused now.


Juerd

Reply via email to