Re: Simple-?? classes
- From: Ross McFarland <rwmcfa1 neces com>
- To: "A. Pagaltzis" <pagaltzis gmx de>
- Cc: Gtk-Perl-List <gtk-perl-list gnome org>
- Subject: Re: Simple-?? classes
- Date: Wed, 31 Mar 2004 19:04:35 -0500
On Wed, 2004-03-31 at 17:39, A. Pagaltzis wrote:
* Ross McFarland <rwmcfa1 neces com> [2004-03-31 01:24]:
On Tue, 2004-03-30 at 10:02, Carl Nygard wrote:
If SimpleList is moved to Simple::List, isn't it possible to
use some perl magic to yank in the code from Simple::List and
make it appear as Gtk2::SimpleList? I vaguely recall some
cookbook code or tutorial example that did this type of
thing.
most likely, although it would take being very careful.
Not terribly, not even very. If $obj->isa('Gtk2::SimpleList')
suffices, then it's child's play. Only if you insist on
satisfying ref($obj) == 'Gtk2::SimpleList' do things get..
interesting.
which is precisely what i was thinking of. basically i think it could be
done with a dummy type Gtk2::SimpleList something like
package Gtk2::SimpleList;
*new = *Gtk2::Simple::List::new;
...
but i haven't completely thought it through, which is why it isn't done.
-rm
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]