At 7:51 PM +0100 8/12/02, Tom Hughes wrote: >Is indexing a PerlHash by an integer something that is supposed >to be valid? Likewise for indexing a PerlArray by a string? > >Currently both of these are allowed, but as it stands my keyed >access patch breaks this. Obviously indexing either by a PerlScalar >will still work as the PerlScalar PMC will handle the type conversion >issues when necessary.
Hash should support integer lookup. PerlHash doesn't have to, and may throw an exception. Arrays don't have to support lookup by string keys. They also can throw an exception. -- Dan --------------------------------------"it's like this"------------------- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk