Re: [RFC][PATCH] Small enhancement for Glib::Object::Subclass




Carl Nygard said:
<look ma, no code>  I had implemented something similar, via the
AUTOLOAD function.  If I had a hash member name, I could just use
$obj->MEMBER($value) or $obj->MEMBER() to set/get the attribute.

Gtk-Perl had something like this; it's in Gtk.pm, around line 145:
http://search.cpan.org/src/MLEHMANN/Gtk-Perl-0.7009/Gtk/Gtk.pm

i never used it -- i didn't even know it was there until reading the source
sometime last year.


-- 
muppet <scott at asofyet dot org>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]