Re: A12: syntax to call Attributes

2004-04-23 Thread Aaron Sherman
On Wed, 2004-04-21 at 12:44, Abhijit A. Mahabal wrote: On Wed, 21 Apr 2004, Brent 'Dax' Royal-Gordon wrote: Which actually brings up an interesting question: class Silly { has $.thing=1; has @.thing=(2, 3); has %.thing=(4 = 5, 6 = 7); } I had

A12: syntax to call Attributes

2004-04-21 Thread Jonathan Lang
How would I call attributes? Specifically, what if I'm calling a list attribute from a scalar object? my Dog $spot; my Dog @pack; $spot-@.legs; # INCORRECT (I hope) [EMAIL PROTECTED]; # INCORRECT? @spot.legs;# What if you also have @spot declared? = Jonathan Dataweaver

Re: A12: syntax to call Attributes

2004-04-21 Thread Matthew Walton
Jonathan Lang wrote: How would I call attributes? Specifically, what if I'm calling a list attribute from a scalar object? my Dog $spot; my Dog @pack; $spot-@.legs; # INCORRECT (I hope) [EMAIL PROTECTED]; # INCORRECT? @spot.legs;# What if you also have @spot declared? As a

Re: A12: syntax to call Attributes

2004-04-21 Thread Brent 'Dax' Royal-Gordon
Jonathan Lang wrote: How would I call attributes? Specifically, what if I'm calling a list attribute from a scalar object? my Dog $spot; my Dog @pack; $spot-@.legs; # INCORRECT (I hope) [EMAIL PROTECTED]; # INCORRECT? @spot.legs;# What if you also have @spot declared? This

Re: A12: syntax to call Attributes

2004-04-21 Thread Abhijit A. Mahabal
On Wed, 21 Apr 2004, Brent 'Dax' Royal-Gordon wrote: Which actually brings up an interesting question: class Silly { has $.thing=1; has @.thing=(2, 3); has %.thing=(4 = 5, 6 = 7); } I had assumed that'd be illegal: each of $.thing, @.thing and %.thing