PMCs ("Parrot Magic Cookies")
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 © 2009 http://www.pmichaud.com/2009/pres/ |