RE: slices

2001-05-25 Thread David Whipp
Uri Guttman wrote: > so we have to get some way to denote a list of indices as a slice and > also support some range operation as a possible component of that list > with the knowledge that the range arguments are also indices and not > just integers. > > i don't have any syntax ideas for this at

Re: Apo2: \Q ambiguity

2001-05-25 Thread Raul Miller
On Fri, May 04, 2001 at 06:29:21PM +0100, Richard Proctor wrote: > In Apocalypse 2, \Q is being used for two things, and I believe this > may be ambiguious. Probably Larry was thinking \E (end of special treatment), originally. -- Raul

Re: slices

2001-05-25 Thread Uri Guttman
> "BL" == Bart Lateur <[EMAIL PROTECTED]> writes: BL> @bar = @foo[(1,2,3)]; BL> is the same as BL> @bar = (@foo[1], @foo[2], @foo[3]); BL> or: just an ordinary slice. OTOH, BL> $bar = @foo[(1, 2, 3)]; BL> is the same as BL> $bar = (@foo[1], @foo[2], @foo[3]); the

Re: slices

2001-05-25 Thread Bart Lateur
On Thu, 24 May 2001 22:19:12 -0400, James Mastros wrote: >But what about: @foo[(1,2,3)]? > >Are those parens a list-maker, or are they a scalar expression using >the comma operator. Both. But in this case, I'd say: it depends on the context the slice is called in. @bar = @foo[(1,2,3)]