* Compiler/optimizer bug
@ 2010-03-27 21:25 Mark H Weaver
2010-03-28 12:32 ` Andy Wingo
0 siblings, 1 reply; 2+ messages in thread
From: Mark H Weaver @ 2010-03-27 21:25 UTC (permalink / raw)
To: guile-devel
There has been a compiler bug in master since at least March 2.
(map (lambda (lst)
(write lst) (newline)
(apply (lambda (a b c)
(+ a b c))
lst))
'((1 2 3)))
Guile evaluates the expression above correctly, but if you comment out
the "(write lst) (newline)", it fails with the following error:
Throw to key `wrong-number-of-args':
ERROR: Wrong number of arguments to #<procedure 96b9e30 at standard input:105:5 (a b c)>
Same problem happens if you replace the map with "for-each", "any", etc.
Mark
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Compiler/optimizer bug
2010-03-27 21:25 Compiler/optimizer bug Mark H Weaver
@ 2010-03-28 12:32 ` Andy Wingo
0 siblings, 0 replies; 2+ messages in thread
From: Andy Wingo @ 2010-03-28 12:32 UTC (permalink / raw)
To: Mark H Weaver; +Cc: guile-devel
On Sat 27 Mar 2010 22:25, Mark H Weaver <mhw@netris.org> writes:
> There has been a compiler bug in master since at least March 2.
>
> (map (lambda (lst)
> (write lst) (newline)
> (apply (lambda (a b c)
> (+ a b c))
> lst))
> '((1 2 3)))
>
> Guile evaluates the expression above correctly, but if you comment out
> the "(write lst) (newline)", it fails
Thanks, fixed.
Andy
--
http://wingolog.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-03-28 12:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-27 21:25 Compiler/optimizer bug Mark H Weaver
2010-03-28 12:32 ` Andy Wingo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).