Re: Properties as hash keys, damn perl is cool!



* Ross McFarland <rwmcfa1 neces com> [2003-10-29 20:57]:
accessing GObject properties as keys in the object hash sould
cool to you, $button->{label} = 'This is the text on the
button', then read on.

Not really. Typos won't be caught (not even at runtime), and it's
not subclassing friendly.

Now if you want to AUTOLOAD for something like ->prop_label() ...

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