in reply to Looking for exportable privacy and protection
Of course that would mean that any method which uses a 'private' attribute is also a closure, but you're using a recent version of perl right? If you wanted increased readibilty you could use Sub::Lexical (it'll be on CPAN any day now, honest!). Or you could perhaps write your own source filter to provide such syntactical niceties. There's also a bunch of stuff on the monastery about encapsulation and the like.my %attributes; my $method = sub { ... };
_________
broquaint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Looking for exportable privacy and protection
by bronto (Priest) on Jul 11, 2002 at 09:47 UTC | |
by broquaint (Abbot) on Jul 11, 2002 at 11:54 UTC | |
by bronto (Priest) on Jul 11, 2002 at 12:04 UTC |