develooper Front page | perl.perl6.language | Postings from May 2008

Class question: what is (my $!var) ?

From:
John M. Dlugosz
Date:
May 3, 2008 11:32
Subject:
Class question: what is (my $!var) ?
I've come back to this:

my $!var — class attribute, no accessor,  not inheritable.  How is this different from a normal lexical variable?  Role composition can show differences?

What's the point?


our $!var — class attribute, no accessor, inheritable.

But private variables are not inherited.  What does that mean?

--John



Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About