Re: [RFC][PATCH] Small enhancement for Glib::Object::Subclass
- From: "A. Pagaltzis" <pagaltzis gmx de>
- To: gtk-perl-list gnome org
- Subject: Re: [RFC][PATCH] Small enhancement for Glib::Object::Subclass
- Date: Tue, 11 May 2004 21:47:06 +0200
* Jan Hudec <bulb ucw cz> [2004-05-11 21:33]:
Registering is of course possible, but it:
1) Does not look perlish. Perl seems to prefer magic names.
Seemingly.
There's BEGIN, END, etc, but they operate on a different level,
they're not functions.
OO is traditionally magic name based (con-/destructors,
finalizers, etc) in most languages, so it's not particularly a
choice on Perl's part.
tie() is indeed magic name based.
Overlading, on the other hand, is not.
2) Is actualy more work.
Well, you have to add a call to register the handlers. Not that
much more work..
--
Regards,
Aristotle
"If you can't laugh at yourself, you don't take life seriously enough."
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]