From 10e77686a11633f31759927b687510bf798919c7 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Sat, 18 Dec 2021 14:38:51 +1100 Subject: [PATCH] updates --- 00-TODO | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/00-TODO b/00-TODO index 4cbee01..8c9ad78 100644 --- a/00-TODO +++ b/00-TODO @@ -4,11 +4,8 @@ ### Current version (Cataract Creek) -- allow passing objects to functions by reference is requested -- add [] as size-of-array -- replace [foo::] declaration of array with [] - fix all main() calls -- ensure all param passing and value return is handled correctly - remove all UNTESTED +- use AddressOf instead of AssignRef - revise all commentary - blog post - release @@ -26,11 +23,14 @@ . array slices - references to arrays "foo: []bar" - array access to read bytes from strings. How to get length? "?string[4]" ?? array[] gets length?? +- remove all tests on type->functions +- use a type->function for performing function call - revise all commentary - blog post - release ### Subsequent version +- Maybe allow a reference to be passed to function where the by-value is expected - 'return' statement similar to 'use', but only valid a function context - 'return' can take no value when function has inline/transparent return value - simple methods. Define "func type.name...." and the name will only be visible @@ -53,6 +53,9 @@ - 'then' can extend a case section into some other. ## Needs Design +- do I need a 'rune' type? What are the elements of a string? + Are they small strings? Can I convert to codepoint by treating as number? + How much of this is in the utf8 library? Can a string literal be a number? - exactly where does auto enref/deref happen? .foo modifier does auto-deref (args) modifier does auto-deref (if that makes sense) -- 2.43.0