bobbimanners / EightBall

The Eight Bit Algorithmic Language for Apple II, Commodore 64 and VIC20
GNU General Public License v3.0
19 stars 3 forks source link

Compiler does not implement array pass by reference #10

Closed bobbimanners closed 6 years ago

bobbimanners commented 6 years ago

I have not yet implemented the pass-by-reference semantics for passing arrays to subroutines as parameters in the compiler.

The tricks I use in the interpreter do not adapt so well to the compiler, so I am working out how to do this easily (and with little code.) For now this only works when interpreted (run) but not when using the comp command and the Virtual Machine.

bobbimanners commented 6 years ago

Implemented in v0.60. Seems to be working. Unit tests have been added to unittest.8b