diff options
| author | 2026-10-14 09:07:12 +0000 | |
|---|---|---|
| committer | 2026-10-14 09:07:12 +0000 | |
| commit | fd622c51be670bba2acf4b50c548acedbc8bb263 (patch) | |
| tree | 6d55aaa418c82efe58a240143273c15cc281917c /src/lib | |
| parent | PROPOSALS.md: features worth adding to zc (diff) | |
todo: one sorted list of open work; library suggestions without naming libraries
TODO.md ticks the items verified done (namespaces, actor and icon libraries
and their coverage, the genome embed, the bootstrap ownership limits, the
docs and fixtures sweep) and lists everything still open, including the
newly requested language features, sorted easiest first.
the compiler no longer names actor: file libraries for suggestions come from
src/lib/modules.txt, and lib.name before its include reports the missing
include. icon gains fixtures for reading globals while stepping and for
begin_function on a non-function, and the suite checks that nothing the
compiler reads by default mentions actors. bf.zc, the web sample and std's
capture example use qualified runtime names; LEARN.md uses build/bin paths.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/modules.txt | 5 | ||||
| -rw-r--r-- | src/lib/std.zc | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/modules.txt b/src/lib/modules.txt new file mode 100644 index 0000000..7e157fd --- /dev/null +++ b/src/lib/modules.txt @@ -0,0 +1,5 @@ +# libraries under src/lib that are read from their file by `include name;`. +# std and icon are embedded in the compiler and are not listed. the compiler +# reads this list only to suggest a library for a name it can't find, so a +# library missing here still includes; it just isn't suggested. +actor diff --git a/src/lib/std.zc b/src/lib/std.zc index dfa9841..f0bc390 100644 --- a/src/lib/std.zc +++ b/src/lib/std.zc @@ -65,9 +65,9 @@ int libinit() { // returns it. writes go to the buffer instead of the terminal until end() // stops it, so the buffer is a string once end() has run: // let buf = capture.start(); -// put_s("hello world!"); // nothing on the terminal +// rt.put_s("hello world!"); // nothing on the terminal // capture.end(buf); -// put_s(buf); // hello world +// rt.put_s(buf); // hello world // one capture at a time, and the buffer belongs to whoever holds it. struct capture { |
