[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
call/cc oddness
From: |
Bill Schottstaedt |
Subject: |
call/cc oddness |
Date: |
Thu, 17 Sep 2009 07:25:03 -0700 |
Is this a bug?
scheme@(guile-user)> (call/cc (lambda (a . b) (a 1)))
1
scheme@(guile-user)> (call/cc (lambda arg ((car arg) 1)))
1
scheme@(guile-user)> (call/cc (lambda (a b) (a 1)))
ERROR: Wrong number of arguments to #<program 8bf5330 at standard input:3:9 (a
b)>
r5rs.html and r6rs.html say "Proc must be a procedure of one argument" --
perhaps
ambiguous?
- call/cc oddness,
Bill Schottstaedt <=