From 06fb5aceeb65a75b1cd643debd667c52fdcafcb9 Mon Sep 17 00:00:00 2001 From: Cliff Click Date: Sun, 8 Nov 2026 14:10:02 -0800 Subject: Better error messages Better error messages. Buffs to the std lib; getch() to fetch a single character; streaming I/O handles retries, and large sizes, with better error reporting. Formatted strings. Default int moved to i32. TicTacToe, the game. --- chapter30/src/test/smp/examples/Capitalize.smp | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 chapter30/src/test/smp/examples/Capitalize.smp (limited to 'chapter30/src/test/smp/examples/Capitalize.smp') diff --git a/chapter30/src/test/smp/examples/Capitalize.smp b/chapter30/src/test/smp/examples/Capitalize.smp deleted file mode 100644 index 8e31c18f..00000000 --- a/chapter30/src/test/smp/examples/Capitalize.smp +++ /dev/null @@ -1,22 +0,0 @@ - -// An implementation of -// https://sampleprograms.io/projects/capitalize/ - -val main = { u8[~][] args -> - if( args# > 2 ) { - sys.io.p("Use quotes around multiple strings.\n"); - return 0; - } - if( args# != 2 || args[1]# == 0 ) { - sys.io.p("Usage: please provide a string\n"); - return 0; - } - - u8[~] input = args[1]; - var output = new u8[input# + 1]; - sys.ary.copy(output,0,input,0,input#); - output[0] = sys.char.toupper(input[0]); - output[input#] = '\n'; - sys.io.p(output); - return 0; -}; -- cgit v1.2.3