[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] Half a bug report
From: |
Christian Kellermann |
Subject: |
Re: [Chicken-hackers] Half a bug report |
Date: |
Tue, 5 Jun 2012 15:13:02 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
* Jörg F. Wittenberger <address@hidden> [120605 14:59]:
> A chicken version from trunk as of 2012-02-10 did catch
> the following error with ease. My next update per 2012-05-12
> did no longer.
So you have gotten a compiler error?
With master I get a runtime error only using the following code:
$ cat t.scm
(receive (a b c) (values 1 2 3 4) (print a b c))
$ csc t.scm
$ ./t
Error: bad argument count - received 4 but expected 3: #<procedure (f_28 a0 b1
c2)>
Call history:
t.scm:1: ##sys#call-with-values
t.scm:1: values <--
Same goes for the other way around:
$ cat t.scm
(receive (a b c d) (values 1 2 3) (print a b c d))
$ csc t.scm
$ ./t
Error: bad argument count - received 3 but expected 4: #<procedure (f_29 a0 b1
c2 d3)>
Call history:
t.scm:1: ##sys#call-with-values
t.scm:1: values <--
Adding -v or -specialize flags does not change behaviour here.
What did you see?
Kind regards,
Christian
--
9 out of 10 voices in my head say, that I am crazy,
one is humming.