[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: call/cc oddness
From: |
Neil Jerram |
Subject: |
Re: call/cc oddness |
Date: |
Thu, 17 Sep 2009 18:49:43 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
"Bill Schottstaedt" <address@hidden> writes:
> Is this a bug?
I'd say not. It looks like a useful generalization.
> 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?
Whereas what we implement is "Proc must be a procedure that can accept a
single argument".
Neil
- call/cc oddness, Bill Schottstaedt, 2009/09/17
- Re: call/cc oddness,
Neil Jerram <=