Perlarray internals

2003-08-14 Thread Simon Glover
In the get_integer_keyed_int method in perlarray.pmc, we're cuurently doing: INTVAL get_integer_keyed_int (INTVAL key) { if (key >= DYNSELF.elements() || key < -DYNSELF.elements()) { PMC* temp = undef(INTERP); return VTABLE_get_integer(INTERP, temp);

Re: Perlarray internals

2003-08-14 Thread Steve Fink
On Aug-07, Simon Glover wrote: > In other words, if we're referencing an element outside the current > array bounds, then we call undef(), which creates a new PerlUndef PMC, > and we then use this _solely_ to call get_integer on, despite the fact > that we _know_ that the result is going to be

Re: Perlarray internals

2003-08-14 Thread Dan Sugalski
At 7:55 PM -0400 8/7/03, Simon Glover wrote: In the get_integer_keyed_int method in perlarray.pmc, we're cuurently doing: [Snip] (with similar code for get_number_keyed_int and get_string_keyed_int). In other words, if we're referencing an element outside the current array bounds, then we cal