HaloO, Autrijus Tang wrote:
What about this?
OK, let's play some manual type inferencing ;)
my $spot = Dog;
$spot.does(Item of Dog), that means what ever the name Dog represents was stored or bound to $spot.
defined($spot); # false!?
true! Even for my $spot = ::Dog because when my is evaluated the name ::Dog has be be bound, AUTOLOADED or by whatever means become available.
$spot .= new; # instantiated?
Why not, a bit weird though to replace the class link with a fresh instance of same class. -- $TSa.greeting := "HaloO"; # mind the echo!