develooper Front page | perl.perl6.internals | Postings from July 2002

Re: PARROT QUESTIONS: Keyed access

Thread Previous | Thread Next
From:
Dan Sugalski
Date:
July 21, 2002 00:17
Subject:
Re: PARROT QUESTIONS: Keyed access
Message ID:
Pine.LNX.4.44.0207210222420.18276-100000@redcap.sidhe.org
On Sat, 20 Jul 2002, John Porter wrote:

> 
> Ashley Winters wrote:
> > $foo{$x}{$y}{$z} = 10;
> > 
> > set P0, P0[P1]
> > set P0, P0[P2]
> > set P0[P3], P4
> > 
> > That code assumes the KEY* goes away, which I would like.
> > Just don't allow more than one keyed parameter.
> 
> You've said what I tried to say, exactly.

Unfortunately it's not happening, and it's a bad idea anyway.

We are keeping multiple keyed arguments in a single opcode.

  add P0[S1], P3[2, 2, 3], P4[4, 2, 2]

is valid and will stay that way.

We're also *not* making keys into PMCs. They're simple linked lists for a 
reason. At best they may (_may_, and don't count on it) be Buffer 
structures, but that's it, and likely not that.

> Right?  Or am I overlooking something?

Nested multidimensional data structures mainly. And speed.

Sorry I don't have time for details--maybe in a few days. This has been
discussed before--the answers are in the architves.

						Dan


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About