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

(tye)Re: Thou Shall Not Covet thy Object's Internals

by tye (Sage)
on Apr 26, 2001 at 02:33 UTC ( [id://75650]=note: print w/replies, xml ) Need Help??


in reply to Re: Thou Shall Not Covet thy Object's Internals
in thread Thou Shall Not Covet thy Object's Internals

To truely protect your object internals, you need to use closures.

Update: Note that I find doing such to be not only overkill but a bad idea in Perl (except perhaps within large Perl projects where the temptation to peek at another class's implementation, your motivation to protect other team members from themselves, and the interdependence of classes may all be higher). And with new modules for getting at lexicals other than your own, the extra 'protection' provided now isn't much anyway.

        - tye (but my friends call me "Tye")
  • Comment on (tye)Re: Thou Shall Not Covet thy Object's Internals

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://75650]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-09-16 19:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (22 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.