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 language (unless for 
attributes prefixed by __, for which there are some mangling done by the 
interpreter to hide them).

> But if that's what you want, blessing a closure is probably
> more secure than most other languages. Be aware though, that if someone
> starts wielding the B modules, you have no chance.

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 messing with attribute values (and re-blessing them, but 'bless' 
can be overriden, so i think this one's not a problem).

-- 
dave


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to