unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#21378: R6RS guard's else chokes on multiple expressions
@ 2015-08-29 21:52 Taylan Ulrich Bayırlı/Kammer
  2015-08-30 11:52 ` Taylan Ulrich Bayırlı/Kammer
  0 siblings, 1 reply; 2+ messages in thread
From: Taylan Ulrich Bayırlı/Kammer @ 2015-08-29 21:52 UTC (permalink / raw)
  To: 21378

It seems that whatever macro tries to match the guard expression's
else-clause, fails to do so when the clause contains more than one
expression, and so adds a default "else re-raise" clause after the
existing else clause.

I couldn't figure out where this happens.  I grepped the whole
source tree for 're-raise' and only found it twice in a comment.

Transcript showcasing bug:

taylan@T420:~$ guile
GNU Guile 2.0.11
Copyright (C) 1995-2014 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guile-user)> ,use (rnrs exceptions)
scheme@(guile-user)> (guard (exc (else #f #f)) #f)
While compiling expression:
ERROR: Syntax error:
unknown file:3:12: cond: else must be the last clause in subform (else #f #f) of (cond (else #f #f) (else (re-raise)))
scheme@(guile-user)>

Taylan





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#21378: R6RS guard's else chokes on multiple expressions
  2015-08-29 21:52 bug#21378: R6RS guard's else chokes on multiple expressions Taylan Ulrich Bayırlı/Kammer
@ 2015-08-30 11:52 ` Taylan Ulrich Bayırlı/Kammer
  0 siblings, 0 replies; 2+ messages in thread
From: Taylan Ulrich Bayırlı/Kammer @ 2015-08-30 11:52 UTC (permalink / raw)
  To: 21378-done

Please ignore this bug report, since it was my fault.  I had a foreign
(rnrs exceptions) library in my load-path that took precedence.

Sorry about the noise.

Taylan





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-08-30 11:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-29 21:52 bug#21378: R6RS guard's else chokes on multiple expressions Taylan Ulrich Bayırlı/Kammer
2015-08-30 11:52 ` Taylan Ulrich Bayırlı/Kammer

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).