]> ocean-lang.org Git - ocean/commit
oceani: add reference type
authorNeilBrown <neil@brown.name>
Mon, 6 Dec 2021 05:54:07 +0000 (16:54 +1100)
committerNeilBrown <neil@brown.name>
Wed, 8 Dec 2021 05:23:09 +0000 (16:23 +1100)
commitb57589e699a72debfbbe6a29983dfe7ed707a148
tree3add789bba75577038b39f529da13714b988fc8d
parent9c3c0e628883128ce89c34c177c1b5bb534ea69d
oceani: add reference type

 @foo  is a type which is a reference to type 'foo'.
 If var is an @foo, then var@ is the foo.
 @new() returns an appropriate new object
 @free= thing will free thing
 @nil is an invalid reference of any type.

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