From c39500ef12ffba7114e3084979679940f83658b6 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Sun, 28 Nov 2021 09:17:59 +1100 Subject: [PATCH] updates --- 00-TODO | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/00-TODO b/00-TODO index 56d26e3..7bd6ddc 100644 --- a/00-TODO +++ b/00-TODO @@ -4,8 +4,6 @@ ### Current version (Cataract Creek) -- allow global names to be used before they are declared. Assume global - if undeclared, and complain in final analysis. - allow type names to be used before declared. Need to re-evaluate all type sizes after parse. - resolve the HACK of allowing assign from struct when name starts space. @@ -23,8 +21,12 @@ - enum, with multi-valued names. enum foo { yes, no, many(10) } bar:foo=.yes; if bar == .no... if ?bar.many: print bar.many, "items" Maybe .true and .false for Boolean +- change use/case labels in ".name" which creates a local enum if no + type is evident. - set, with bool or int members. set foo { pinned, memalloc, priority(4) } bar:foo = .memalloc | .priority(2). if bar.pinned: bar.priority += 1 +- allow global names to be used before they are declared. Assume global + if undeclared, and complain in final analysis. . array slices - references to arrays - array access to read bytes from strings. How to get length? "?string[4]" ?? array[] gets length?? -- 2.43.0