develooper Front page | perl.perl6.users | Postings from July 2021

array and class question

Thread Next
ToddAndMargo via perl6-users
July 4, 2021 10:37
array and class question
Message ID:
Hi All,

What I am doing wrong here?

 > class UupDumpClass { has @.arry is rw; }

 > my $x = UupDumpClass;

 > $x.arry[0] = "zero";
Cannot look up attributes in a UupDumpClass type object
   in method arry at <unknown file> line 1
   in block <unit> at <unknown file> line 1

Many thanks,

If I had a dime every time I didn't know
what was going on, I'd be like, "Why is
everyone giving me all these dimes?"

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About