At 8:55 AM +0200 7/2/03, Leopold Toetsch wrote:
Simon Glover (via RT) wrote:

# New Ticket Created by Simon Glover # Please include the string: [perl #22867]
# in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=22867 >




Based on the documentation in core.ops, I would expect this code:

No. They pop whatever was pushed last. A pushi is pushbottomi / pushtopi, so the top frame on the stack is {2,0,...,0} in your latter example.
And doc states from "the most recently B<push>ed copies", which matches the behavior.

Right. This is actually on purpose, though I should document the order better. I'm fully expecting to see:


   pushi
   popbottomi
   poptopi

to swap the top and bottom halves of a register set....:)
--
                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to