]> ocean-lang.org Git - ocean/commit
oceani: allow a variable to be declared with no value
authorNeilBrown <neil@brown.name>
Sun, 28 Apr 2019 00:40:12 +0000 (10:40 +1000)
committerNeilBrown <neil@brown.name>
Wed, 1 May 2019 08:07:28 +0000 (18:07 +1000)
commit2770ad454dcc49b478e5452dfda69803c8f94c69
tree006992024c7c823d9e96d3ab4ca9ee10c0afe15c
parent4564083edac88eb2ed552217a09e5a409b110a12
oceani: allow a variable to be declared with no value

 var:type

is now allowed.  "var:" is not - there must be either a
type or an initial value.

If only the type is given, the type's 'init' function
is called to provide an initial value.

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