in reply to Re: inheritance turns back and bites
in thread inheritance turns back and bites
sub new { bless \pop, shift } it's like doing sub new { bless \42, "MyNumber" } and you can't bless a constant into an object. so do my $arg = pop; bless \$arg, shiftI do not think this is wrong, since \pop is like \pop @_ and whatever I pop it is pushed and a pushed constant is a scalar.
Boris
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: inheritance turns back and bites
by tinita (Parson) on Mar 01, 2004 at 14:01 UTC | |
by dada (Chaplain) on Mar 01, 2004 at 14:18 UTC | |
by borisz (Canon) on Mar 01, 2004 at 14:07 UTC | |
by tinita (Parson) on Mar 01, 2004 at 14:18 UTC |
In Section
Seekers of Perl Wisdom