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

[email protected] (Nathan Wiger) Tue, 19 Sep 2000 12:35:31 -0700
Newsgroups perl.perl6.language.objects
Message-ID <[email protected]>
> This RFC proposes two new keywords -- C<private> and C<public> -- 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 { }

I'd be interested what others think.

-Nate