* Paul LeoNerd Evans <[EMAIL PROTECTED]> [2007-03-27 18:55]:
> I've been pondering the use of lock_keys() in object
> constructors, to make the objects a bit more strict; giving the
> same sort of advantages on hash keys for an object as "use
> strict" does for variables.
It doesn’t. The declaration-related strictures catch mistakes at
compile time, not runtime.
> b) Makes it harder to subclass.
>
> Then actually do all of the object initialisation in a subclass
> chain of sub _init { ... } methods.
This is actually common; I think `BUILD` is the name I saw most
often for that.
> Anyone have anything better?
Inside-out objects.
Regards,
--
Aristotle Pagaltzis // <http://plasmasturm.org/>