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"
Parrot | Parrot Compiler Toolkit | #11 |
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 R. Michaud http://www.pmichaud.com/2008/pres/ |