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

[email protected] (Tom Christiansen)
Newsgroups perl.perl6.language.objects
Message-ID <19984.967842926@chthon>
>=head2 Private methods

>The C<private> keyword could also be applied to subroutines, to restrict
>where they may be called. Access rules similar to those for private hash
>entries would apply:

>        package Base;
>        
>        sub new { ... }
>        
>        private sub check { ... }
>        

How is this different/better/worse from "my sub"?

--tom
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.