Re: RFC 188 (v2) Objects : Private keys and methods

2000-09-19 Thread Nathan Wiger
This RFC proposes two new keywords -- Cprivate and Cpublic -- that limit the accessibility of keys in a hash, and of methods. I still think these should be attributes across the board: my $hash{$key} : private = $val; my @hash{qw(_name _rank _snum)} : public; sub dostuff : private {

Re: RFC 188 (v2) Objects : Private keys and methods

2000-09-19 Thread Damian Conway
The problem with specifying them as attributes is that I do not believe there is any way (or even any proposed way) of applying attributes to a hash entrie or a hash slice, nor is there any way of *retrospectively* applying an attribute to a hash that has already been declared elsewhere. Damian

Re: RFC 188 (v2) Objects : Private keys and methods

2000-09-19 Thread Nathan Wiger
Damian Conway wrote: The problem with specifying them as attributes is that I do not believe there is any way (or even any proposed way) of applying attributes to a hash entrie or a hash slice, nor is there any way of *retrospectively* applying an attribute to a hash that has already been