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

Dynamic keys

Thread Next
From:
Tom Hughes
Date:
August 26, 2002 02:56
Subject:
Dynamic keys
Message ID:
f595ff6b4b.tom@compton.compton.nu
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

-- 
Tom Hughes (tom@compton.nu)
http://www.compton.nu/


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