Allowed recursive define expansion.
[scheme.forth.jl.git] / scheme-primitives.4th
index e446b2e..e5a7dba 100644 (file)
@@ -421,8 +421,10 @@ defer display
 
 ( ==== Evaluation ==== )
 
-:noname 
-    \ Dummy apply procedure
-    \ Should never actually run!
-    ." Error: Dummy apply procedure executed!" cr
-; make-primitive apply
+:noname ( args -- result )
+    2dup car 2swap cdr
+
+    nil? false = if car then ( proc argvals )
+    
+    apply
+; make-primitive apply