in reply to Re: Perl 6 class
in thread Perl 6 class
and also see the same construction in wiki and it isn't work. You wrote:Class traits are set using is: class MyStruct is rw {...}
(Update: it's an example in the spec, but I'm not sure what it means)I think it means (from the spec):
If you declare the class as rw, then all the class's attributes default to rw, much like a C struct.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl 6 class
by Limbic~Region (Chancellor) on Nov 18, 2008 at 16:22 UTC | |
|
Re^3: Perl 6 class
by moritz (Cardinal) on Nov 18, 2008 at 16:10 UTC | |
by Stanislav (Novice) on Nov 18, 2008 at 16:35 UTC |