Parameter Passing: Difference between revisions
→Example M2000 Interpreter
No edit summary |
|||
Line 143:
===Example [[M2000 Interpreter]]===
All parameters are passed by value is a stack of values. This stack is a collection of values, and that collection is passed from a module to a module as is,
We can pass by reference values, although actually we store a weak reference and at the Read statement this reference change to normal if it is valid (or an error occur). So call thisModule &Z pass a string as a weak reference, and at the thisModule we have the Read &t which make t to hold the same memory as the Z.
Line 168:
call kappa
</syntaxhighlight>
===Example [[Z80 Assembly]]===
|