Fix definition of 0=exit
authoruho <uho@xlerb.de>
Sat, 26 Oct 2019 08:03:39 +0000 (10:03 +0200)
committeruho <uho@xlerb.de>
Sat, 26 Oct 2019 08:03:39 +0000 (10:03 +0200)
preForth/forth.simple

index 9847285..3ed8039 100644 (file)
@@ -531,8 +531,8 @@ immediate: ." ( -- )
    ['] (." ,
    '"' parse ", ; 
 
-: 0=exit ( -- )
-   ['] 0=  ['] ?exit ;
+immediate: 0=exit ( -- )
+   ['] 0= compile, ['] ?exit compile, ;
 
 immediate: FOR ( n -- )
    ['] BEGIN execute