The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: perl.perl6.internals
From: l...@toetsch.at (Leopold Toetsch)
Date: Fri, 4 Jun 2004 10:58:51 +0200
Local: Fri, Jun 4 2004 4:58 am
Subject: Re: PerlHash using PMCs for keys?
Piers Cawley <pdcaw...@bofh.org.uk> wrote: ^^^ > Leopold Toetsch <l...@toetsch.at> writes: >> Just use a Key PMC for $P2. > So, just for fun I added the following test to t/pmc/perlhash.t: > new P10, .PerlHash > new P1, .PerlString > set P1, "Bar" > new P2, .Key > set P2, P1 C<set Px, Py> aliases the two PMCs, both are pointing to the same PMC > new P3, .Key ^^ > set P2, P1 typo? > Perl 6 supports using full on objects as keys in its hashes. It seems The main problem here is, what does ... > that having parrot do the same would be a Good Thing. set P0, P1[P2] ... mean: keyed_string or keyed_integer, i.e. hash or array lookup. set P2, "42" It depends of course on the aggregate, what kind of key it would like to We could change C<key.c:key_integer()> to extract a number with leo You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||