summaryrefslogtreecommitdiff
path: root/chapter30/docs/examples/A_helloWorld.smp
diff options
context:
space:
mode:
authorCliff Click <cliffc@acm.org>2026-11-08 14:10:02 -0800
committerCliff Click <cliffc@acm.org>2026-11-08 14:10:02 -0800
commit06fb5aceeb65a75b1cd643debd667c52fdcafcb9 (patch)
treec99813eaf27d98f840245302c4d6e923c964307e /chapter30/docs/examples/A_helloWorld.smp
parent6560a92433a38825fd1d44d9c66ffba9f26990ff (diff)
downloadSimple-06fb5aceeb65a75b1cd643debd667c52fdcafcb9.tar.gz
Simple-06fb5aceeb65a75b1cd643debd667c52fdcafcb9.zip
Better error messagesch30
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.
Diffstat (limited to 'chapter30/docs/examples/A_helloWorld.smp')
-rw-r--r--chapter30/docs/examples/A_helloWorld.smp2
1 files changed, 2 insertions, 0 deletions
diff --git a/chapter30/docs/examples/A_helloWorld.smp b/chapter30/docs/examples/A_helloWorld.smp
new file mode 100644
index 00000000..4ed6abdf
--- /dev/null
+++ b/chapter30/docs/examples/A_helloWorld.smp
@@ -0,0 +1,2 @@
+sys.io.p("Hello, World!\n");
+return 0;