mirror of
https://github.com/bobbimanners/EightBall.git
synced 2024-10-19 23:23:49 +00:00
Array pass-by-reference now works in compiler
This commit is contained in:
parent
92164c3274
commit
da72878d33
@ -570,8 +570,6 @@ Here is an example of using a pointer to byte:
|
||||
|
||||
### Passing an Array by Reference
|
||||
|
||||
**Warning: This is currently not implemented in the compiler, only the interpreter.**
|
||||
|
||||
It is frequently useful to pass an array into a subroutine. It is not very useful to use pass by value for arrays, since this may mean copying a large object onto the stack. For these reasons, EightBall implements a special pass by reference mode for array variables, which operates in a manner similar to C.
|
||||
|
||||
Here is an example of a function which takes a regular variable and an array:
|
||||
|
Loading…
Reference in New Issue
Block a user