Parrot Magic Cookies (PMCs)
PMC registers are handles to objects in Parrot’s built-in object system:
new P0, 'Integer' assign P0, 3 set P1, P0 assign P1, 4 print P0 # outputs "4"
Programming Parrot | Programming Parrot | #12 |
PMC registers are handles to objects in Parrot’s built-in object system:
new P0, 'Integer' assign P0, 3 set P1, P0 assign P1, 4 print P0 # outputs "4"
Copyright © 2008 Patrick Michaud |