Defining an operation, cont'd
All other operators call subroutines with the same name as the operator, passing operands as arguments:
proto infix:<&> { ... }
.sub 'infix:&'
.param int left
.param int right
...
.end
| Parrot | Parrot Compiler Toolkit | #54 |
All other operators call subroutines with the same name as the operator, passing operands as arguments:
proto infix:<&> { ... }
.sub 'infix:&'
.param int left
.param int right
...
.end
|
Copyright © 2008 Patrick R. Michaud http://www.pmichaud.com/2008/pres/ |