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.
In reply to Re^2: Perl 6 class
by Stanislav
in thread Perl 6 class
by Stanislav
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |