# New Ticket Created by Bernhard Schmalhofer # Please include the string: [perl #27694] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org:80/rt3/Ticket/Display.html?id=27694 >
Hi, I have been looking into integer keyed access to the Iterator PMC. I tried to make work several 'get_*_keyed_int', 'exists_keyed_int' and 'defined_keyed_int' ops. Most likely this will only be useful for array like PMCs. For determing the key to the 'iterated upon aggregate' I have taken the most simple approach: i. try to get a integer from key stored in the Iterator PMC ii. add the passed index to the integer key iii. call a *-keyed_int Method on the underlying aggregate There are still several limitations, or TODOs: i. get_integer() returns the number of elements of the iterated upon aggregate, not the numberof remaining elements ii. the indexed access doesn't care about the iteration direction iii. The whole indexed approach propably fails for associative arrays I have added some test cases for iteration over a PerlString and over a PerlArray. I have added the op 'get_string'. However this new op is as broken as 'get_integer'. -- /* [EMAIL PROTECTED] */ +++ NEU bei GMX und erstmalig in Deutschland: TÃV-geprÃfter Virenschutz +++ 100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz
iterator_20040316.patch
Description: Binary data