These examples:

        pugs -e 'say shift [1, 2, 3].shift'
        pugs -e 'say shift([1, 2, 3].shift)'
        pugs -e 'say shift([1, 2, 3]).shift'

do not ever return, but yet does not seem to chew up the CPU either.

Meanwhile, these examples:

        pugs -e 'say pop [1, 2, 3].pop'
        pugs -e 'say pop([1, 2, 3].pop)'
        pugs -e 'say pop([1, 2, 3]).pop'

all print '3'.

Just a weird one, I thought I would share it. I am not even sure it is really a bug to be honest (other than the fact it does not seem to return).

Stevan



Reply via email to