develooper Front page | perl.perl6.language | Postings from March 2010

Re: You never have privacy from your children in Perl 6

Thread Previous | Thread Next
From:
Carl Mäsak
Date:
March 23, 2010 11:48
Subject:
Re: You never have privacy from your children in Perl 6
Message ID:
16d769b71003231147idfe1a71td880d1aebf792e89@mail.gmail.com
Carl (>>), Moritz (>):
>> <masak> um, so 'protected' is when the deriving classes can see the attribute?
>> <jonalv> yup
>> <masak> that's what 'private' means in Perl 6.
>
> That's wrong. Perl 6's "private" is like Java's "private" - subclasses
> can't see it.
> It's just Rakudo being leaky at the moment, not a fallacy of the Perl 6
> language. (Yes, we have failing tests for this; no, we don't run them at
> the moment).

That is indeed reassuring. Thank you.

...So, how come Perl 6 doesn't have a 'protected' access level? :)

// Carl

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About