From 834406e9c1645b55d29b5535a538bbf8b79d0c4f Mon Sep 17 00:00:00 2001 From: russ Date: Fri, 10 Sep 2010 06:48:09 -0400 Subject: [PATCH] Changed . to not print a newline, which is what it (doesnt) do in forth --- src/rforth.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rforth.rb b/src/rforth.rb index 8ba6326..2e09e8a 100644 --- a/src/rforth.rb +++ b/src/rforth.rb @@ -60,7 +60,7 @@ class RForth b = @stack.pop @stack << b / a end - d.word('.') { @s_out.print( "#{@stack.pop}\n" ) } + d.word('.') { @s_out.print( @stack.pop ) } d.word('.S') { @s_out.print( "#{@stack}\n" ) } d.word('.D') { pp @dictionary } d.word('cr') { @s_out.puts }