Re: oop pre salt question

2024-12-16 Thread Elizabeth Mattijsen
Yes > On 16 Dec 2024, at 11:52, ToddAndMargo via perl6-users > wrote: > > On 12/16/24 02:27, Elizabeth Mattijsen wrote: >> class Fruit { >> has Str $.location is rw = "Cucamonga"; >> has UInt $.apples is rw = 400; >> has UInt $.oranges is rw = 200; >> has UInt $.bana

Re: oop pre salt question

2024-12-16 Thread ToddAndMargo via perl6-users
On 12/16/24 02:27, Elizabeth Mattijsen wrote: class Fruit { has Str $.location is rw = "Cucamonga"; has UInt $.apples is rw = 400; has UInt $.oranges is rw = 200; has UInt $.bananas is rw = 50; ``} Is the `` at the end a typo?

Re: oop pre salt question

2024-12-16 Thread ToddAndMargo via perl6-users
On 16 Dec 2024, at 10:49, ToddAndMargo via perl6-users wrote: Hi All, In the following; class Fruit { has Str $.location is rw; has UInt $.apples is rw; has UInt $.oranges is rw; has UInt $.bananas is rw; } # Pre-salted: my $FruitStand = Fr

Re: oop pre salt question

2024-12-16 Thread Elizabeth Mattijsen
class Fruit { has Str $.location is rw = "Cucamonga"; has UInt $.apples is rw = 400; has UInt $.oranges is rw = 200; has UInt $.bananas is rw = 50; ``} > On 16 Dec 2024, at 10:49, ToddAndMargo via perl6-users > wrote: > > Hi All, > > In the following; > > class

oop pre salt question

2024-12-16 Thread ToddAndMargo via perl6-users
Hi All, In the following; class Fruit { has Str $.location is rw; has UInt $.apples is rw; has UInt $.oranges is rw; has UInt $.bananas is rw; } # Pre-salted: my $FruitStand = Fruit.new( location => "Cucamonga",