Front page | perl.perl6.internals |
Postings from August 2002
From: Tom Hughes
August 26, 2002 02:56
Message ID: email@example.com
The one part of the keyed access puzzle that my last patch did not
attempt to address is that of constructing keys dynamically.
As things stand you can create a key PMC and you can set the value
of that PMC to a given integer, number, string or PMC value. What you
can't do is join several key PMCs together to create a multi-level key.
I now plan to address that issue. What I propose is that although the
key is implemented as a linked list it should appear to act as an array
so that push/pop/shift/unshift can be used to add and remove elements
at the ends, and indexed access using integers can be used to fetch
and set the value of elements in the list.
Does anybody have any objections to this, or any better ideas on how
to handle this?
Tom Hughes (firstname.lastname@example.org)
by Tom Hughes