Added load primitive.
[scheme.forth.jl.git] / scheme.4th
index 7626be8..0a237da 100644 (file)
@@ -1433,6 +1433,15 @@ include scheme-primitives.4th
     again
 ;
 
+:noname ( args -- finalResult )
+    2dup 1 ensure-arg-count
+    car string-type ensure-arg-type
+
+    drop pair-type
+    pad charlist>cstr
+    pad swap load
+; make-primitive load
+
 \ }}}
 
 \ ---- REPL ----
@@ -1460,9 +1469,6 @@ include scheme-primitives.4th
     again
 ;
 
-: test s" fact.scm" ;
-test load 2drop
-
 forth definitions
 
 \ vim:fdm=marker