|
From: Mattia B. <mb...@ds...> - 2002-09-06 16:39:22
|
[ convention: MyFoo derives from Wx::Foo,
e.g. MyFrame derives from Wx::Frame ]
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; this will help saving some memory,
and is something that I wanted to do since some time,
but I always got more important things to do...
The plan is that there will be a
Wx::_work_as_before( bool ) function to preserve the
current behaviour; until 0.15 this function
will be on by default (but can be switched off),
starting from 0.16 it will be off by default
(but can be switched on).
Comments?
Mattia
|