trait is rw (Attribute)
Documentation for trait is rw (Attribute)
assembled from the following types:
class Attribute
From Attribute
(Attribute) trait is rw (Attribute)
Defined as:
multi sub trait_mod:<is> (Attribute , :!)
Marks an attribute as read/write as opposed to the default readonly
. The default accessor for the attribute will return a writable value.
;my = Boo.new;.bar = 42; # works.baz = 42;CATCH ;# OUTPUT: «X::Assignment::RO: Cannot modify an immutable Any»