]> ocean-lang.org Git - ocean/commit
oceani: don't allocate init value for non-initialized fields.
authorNeilBrown <neil@brown.name>
Sat, 16 Oct 2021 05:27:41 +0000 (16:27 +1100)
committerNeilBrown <neil@brown.name>
Sat, 30 Oct 2021 22:18:36 +0000 (09:18 +1100)
commit809b04eb484b75d8c0e26ba12642ed34bc6b1fd7
tree46348282fd41aa53d1db4eb83cc46c09b3aa4d87
parentf69af714036e7f24be0f5a8f6e4a054f35cefe9d
oceani: don't allocate init value for non-initialized fields.

Struct fields that aren't explicitly initialised must be initialized to
a 'null' value.  This can happen at interp-time.  There is no need to
allocate a null value when parsing.

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