All pastes #359640 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-02-16 23:27 UTC
rendered paste body
.sub 'main' :main
        load_bytecode 'dumper.pir'
        .local ResizablePMCArray fields
        split fields, ",", "hey,you"
        _dumper (fields)

        .local pmc big
        new big, .BigInt
        _dumper (big)

        set big, "1234567890987654321"
        _dumper (big)

        unshift fields, big
        _dumper (fields)
.end
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ./parrot mutate.pir
"VAR1" => ResizableStringArray (size:2) [
    "hey",
    "you"
]
"VAR1" => PMC 'BigInt' { ... }
"VAR1" => PMC 'BigInt' { ... }
"VAR1" => ResizableStringArray (size:3) [
    "1234567890987654321",
    "hey",
    "you"
]

;;;;;;

what's puzzling is that "big" starts out as a BigInt, but seems to get transformed into a string when I put it into the array.