Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: RFR: Inside-out classes - a Class::InsideOut primer

by Anno (Deacon)
on Mar 17, 2007 at 23:19 UTC ( #605315=note: print w/replies, xml ) Need Help??


in reply to Re: RFR: Inside-out classes - a Class::InsideOut primer
in thread RFR: Inside-out classes - a Class::InsideOut primer

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

  • Comment on Re^2: RFR: Inside-out classes - a Class::InsideOut primer

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://605315]
help
Chatterbox?
[Corion]: Whee! ;)
[Corion]: I was away last week already, so I know how good a week off is ;))
[Discipulus]: a barter with your time (above the poorline time is always better than money)

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2017-02-28 10:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (399 votes). Check out past polls.