Re: Arrays vs. Lists [x-adr]

2003-02-11 Thread Michael Lazzaro
On Tuesday, February 11, 2003, at 10:56 AM, Garrett Goebel wrote: What about this? \@array hmm. As perl Apoc2, Lists, RFC 175... arrays and hashes return a reference to themselves in scalar context... I'm not sure what context '\' puts them in. I'd guess \@array is a reference to an

Re: Arrays vs. Lists [x-adr]

2003-02-11 Thread Mark J. Reed
[Recipients trimmed back to just p6-language; the Cc: list was getting a bit large.] On 2003-02-11 at 12:56:45, Garrett Goebel wrote: > I'd just stick with Uri's explanation. Arrays are allocated. Lists are > on the stack... Nuh-uh. Those are implementation details, not part of the language defin

RE: Arrays vs. Lists [x-adr]

2003-02-11 Thread Garrett Goebel
From: Michael Lazzaro [mailto:[EMAIL PROTECTED]] > > Just to clarify... in P6, is this an array reference, or a list > reference? > > [1,2,3] Exactly. It's still up in the air... Apoc 2, RFC 175: > So it works out that the explicit list composer: > >[1,2,3] > > is syntactic sugar f

RE: Arrays vs. Lists [x-adr]

2003-02-10 Thread Garrett Goebel
Uri Guttman wrote: > > arrays are allocated and lists are on the stack. so arrays > can have references to them but lists can't. Apoc 2, RFC 175: > > scalar(list(1,2,3)); [...] > scalar(array(1,2,3)); Which would imply one could take a reference to either. > can anyone see any changes in p