From: Scott L. <sla...@th...> - 2002-09-07 18:42:00
|
On Fri, 6 Sep 2002, Mattia Barbon wrote: > Until now calling Wx::Button->new and MyButton->new > returned an HASH refence, so it was possible to use code like this: > > my $b = Wx::Button->new( ... ); > $b->{foo} = 1; $b->{BAR} = 2; > ... > > I'd like to deprecate that feature and have > Wx::Button->new( ... ) return a scalar reference, > while MyButton->new( ... ) will still return an > hash refernce; So this means that $class->SUPER::new() returns HASH while Wx::Button->new() returns SCALAR? For what it's worth, I think that's quite a nice behavior. :) |