Audrey Tang audreyt-at-audreyt.org |Perl 6| wrote:

"Every Idiot declaration... "
Sorry, must be a font problem

Seriously,
Does this mean that the access of private attributes from trusted classes is a "different form"? And that's why you need the qualified syntax when I think it should not be necessary in all cases? Or should that passage really say "not in non-trusted classes, including derived classes"?

--John

John M. Dlugosz wrote:

OK, trust is not implicit on derived classes. Is that because there is
no rule that says it is, or is there a mention of that somewhere in the
official docs?

There is.  S12 Line 561:

Every I<dot> declaration also declares a corresponding private
I<exclamation> storage location, and the exclamation form may be used
only in the actual class, not in derived classes.

Cheers,
Audrey


Reply via email to