Carl Mäsak cmasak-at-gmail.com |Perl 6| wrote:
I think that is the point of declared types. But, something likePm (>):In Rakudo's case, we just haven't implemented read-only traits on variables yet.Goodie. I guessed as much.But yes, I expect that it will be caught as a compile-time error.And do you agree it's reasonable to expect this of every compiler? // Carl
no strong_type_check :rw in scope can turn that off, in case you want to play dirty tricks.