Question (#2) about Apocalypse 6 : Can is properties by specified indirectly?

2003-03-10 Thread Austin Hastings
Having just read through the declaration bits (not the calling bits, yet): It is explicitly stated that is rw on a slurpy parameter distributes across all the components. Is there some way of differentiating array of const vs. array of rw? That is, creating a hash or array that can be extended

Re: Question (#2) about Apocalypse 6 : Can is properties by specified indirectly?

2003-03-10 Thread Luke Palmer
I believe you'd have to create a class for such things, derived from Array: class AppOnlyArray is Array { method STORE(int $index, $value) { fail Can't modify existing element if 0 = $index .length;

Re: Question (#2) about Apocalypse 6 : Can is properties by specified indirectly?

2003-03-10 Thread Damian Conway
Austin Hastings wrote: It is explicitly stated that is rw on a slurpy parameter distributes across all the components. Is there some way of differentiating array of const vs. array of rw? That is, creating a hash or array that can be extended without overwriting? I'm not sure I follow what

Re: Question (#2) about Apocalypse 6 : Can is properties by specified indirectly?

2003-03-10 Thread Mark J. Reed
On 2003-03-11 at 10:12:17, Damian Conway wrote: Austin Hastings wrote: It is explicitly stated that is rw on a slurpy parameter distributes across all the components. Is there some way of differentiating array of const vs. array of rw? That is, creating a hash or array that can be

Re: Question (#2) about Apocalypse 6 : Can is properties by specified indirectly?

2003-03-10 Thread Austin Hastings
--- Damian Conway [EMAIL PROTECTED] wrote: Austin Hastings wrote: It is explicitly stated that is rw on a slurpy parameter distributes across all the components. Is there some way of differentiating array of const vs. array of rw? That is, creating a hash or array that can be

Re: Question (#2) about Apocalypse 6 : Can is properties by specified indirectly?

2003-03-10 Thread Damian Conway
Austin Hastings asked: How do I specify an array which may be appended/pushed, but whose values cannot change? I believe you'd have to create a class for such things, derived from Array: class AppOnlyArray is Array { method STORE(int $index, $value) {