Keep It Simple, Stupid | |
PerlMonks |
Re^2: RFR: Inside-out classes - a Class::InsideOut primerby Anno (Deacon) |
on Mar 17, 2007 at 23:19 UTC ( [id://605315]=note: print w/replies, xml ) | Need Help?? |
And the privacy is still relative - I'm not sure how things work under the hood, but wouldn't you be able to step into the package namespace from elsewhere and clobber the hashes holding the instance data?
Not if you use lexical hashes for data storage as is usually recommended. Excluding padwalker trickery, those are only accessible from their lexical scope, which can be made sufficiently small. Anno
In Section
Meditations
|
|