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