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



* 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]