From 61cf948faa4b911a5b0a8ded1352f2070000d422 Mon Sep 17 00:00:00 2001 From: Ben Hoyt Date: Fri, 20 May 2016 08:23:17 -0400 Subject: [PATCH] Make Forth example actually *print* the string The previous example didn't actually print anything, it just defined a "word" (function) called `HELLO` and never called it. You could either call the function (just add `HELLO` on a new line), but more simply and idiomatically for just printing something you can use `.( string)` which I've done here. You can try this in an online Forth REPL at https://repl.it/languages/forth --- f/forth.fth | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/f/forth.fth b/f/forth.fth index 8dc77cec..c0ae0e75 100644 --- a/f/forth.fth +++ b/f/forth.fth @@ -1 +1 @@ -: HELLO ." Hello, world!" CR ; \ No newline at end of file +.( Hello, world!)