Re: private object attributes

2002-10-10 Thread David Garamond
James Edward Gray II wrote: > On Thursday, October 10, 2002, at 12:00 PM, David Garamond wrote: > >> thanks for the tip. the reason i am looking for "real" private >> attributes in the first place because i need to give objects (which >> are usually blessed hashrefs) to untrusted code. i cer

Re: private object attributes

2002-10-10 Thread James Edward Gray II
On Thursday, October 10, 2002, at 12:00 PM, David Garamond wrote: > thanks for the tip. the reason i am looking for "real" private > attributes in the first place because i need to give objects (which > are usually blessed hashrefs) to untrusted code. i certainly do not > wish the code messin

Re: private object attributes

2002-10-10 Thread David Garamond
Paul Johnson wrote: > In general Perl treats this as a social rather than a programming problem. > This tends to unnerve some people coming from B&D (programming) > backgrounds. yes, i know this; i have a background in python, and the private attribute thingy is also not available in the langu

Re: private object attributes

2002-10-10 Thread Paul Johnson
David Garamond said: > i've read the Object Orienter Perl book by Damian Conway, and in > chapter 11 he explains about Tie::SecureHash that's supposed to > provide > capability to create private attributes. > > however, since a package is never closed, and we cannot override the > 'package' op (

private object attributes

2002-10-10 Thread David Garamond
i've read the Object Orienter Perl book by Damian Conway, and in chapter 11 he explains about Tie::SecureHash that's supposed to provide capability to create private attributes. however, since a package is never closed, and we cannot override the 'package' op (via declaring sub CORE::GLOBAL::p