> Date: Sun, 8 Dec 2002 21:52:33 -0800
> From: Dave Storrs <[EMAIL PROTECTED]>
>
> On Sat, Dec 07, 2002 at 01:28:41PM +1100, Damian Conway wrote:
> > Dave Whipp wrote:
> >
> > > I notice everyone still want Int context for eval of the block:
> > > Pease don't forget about hashes. Is there such a thing as
> > > 'hashkey context'?
> >
> > I doubt it. Unless you count Str context.
>
> My understanding was that in Perl6, you could use pretty much anything
> for a hashkey--string, number, object, whatever, and that it did not
> get mashed down into a string. Did I have this wrong?
By default they're keyed by strings. You can smack a property on them
to key them by something else, though:
my %sparse is keyed(Int);
my %anything is keyed(Object); # or UNIVERSAL
Luke