in reply to Inside-out classes structure
I've been pondering moving to a similar structure for Object::LocalVars. It would give the same general benefits of inside-out classes, and it makes object destruction a little simpler -- just one reference to delete rather than deleting each attribute individually. Ditto for CLONE (which I don't think Class::Std handles properly yet.) I haven't gotten around to benchmarking this approach yet, though, so there is some risk that this is premature optimization.
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
|
|---|