procedure-arity on vm-compile apply: verily, unresolved.
authorAndy Wingo <wingo@pobox.com>
Fri, 13 Mar 2009 22:55:51 +0000 (23:55 +0100)
committerAndy Wingo <wingo@oblong.net>
Tue, 17 Mar 2009 15:46:43 +0000 (16:46 +0100)
* test-suite/tests/procprop.test ("procedure-arity"): Procedure-property
  'arity on "apply" will fail if "apply" is a program. I suggest that
  procedure-property is actually the wrong interface for this; if we even
  want to preseve the old arity forms, we should have an accessor for
  arity directly that the VM can implement. But in the meantime throw
  this nasty error while we decide.

test-suite/tests/procprop.test

index 5ab5850..40e89c7 100644 (file)
@@ -44,7 +44,9 @@
             '(1 0 #f)))
 
   (pass-if "apply"
-    (equal? (procedure-property apply 'arity)
+    (equal? (if ((@ (system vm program) program?) apply)
+                (throw 'unresolved)
+                (procedure-property apply 'arity))
             '(1 0 #t)))
 
   (pass-if "cons*"