]> ocean-lang.org Git - ocean/commit
oceani: add transparent AddressOf operator for function parameters.
authorNeilBrown <neil@brown.name>
Sat, 18 Dec 2021 02:47:45 +0000 (13:47 +1100)
committerNeilBrown <neil@brown.name>
Sat, 18 Dec 2021 02:47:45 +0000 (13:47 +1100)
commit038c114a1ceec224aeaa6c15c025c6bb4b3c2b6d
tree5c39ec615a3fc75ac4635cd3dfd3b53f0e0964b2
parent5c455fe9ef93d88b349bb25733d5ea20a8984050
oceani: add transparent AddressOf operator for function parameters.

If a function parameters is a declared as an reference, and the passed
argument is not, then we insert the new AddressOf operator so that
the correct value is passed.
This allow "var" parameters much like Pascal - though with completely
different syntax.

Signed-off-by: NeilBrown <neil@brown.name>
csrc/oceani-tests.mdc
csrc/oceani.mdc