bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Guile v. 2.0.1 does not handle escaped open parentheses correctly.


From: Andy Wingo
Subject: Re: Guile v. 2.0.1 does not handle escaped open parentheses correctly.
Date: Mon, 16 May 2011 23:57:41 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Hi Torstein,

On Wed 11 May 2011 16:22, Torstein Winterseth <address@hidden> writes:

> (define bug
>  '(\())

AFAIU, \ is not actually an escaping marker in R5RS.  The meaning of
your program is not defined by the R5RS, as an initial \ character on a
form is not specified.  Guile treats this the same as:

However...

  $ guile
  scheme@(guile-user)> '\(
  $1 = \
  scheme@(guile-user)> 1
  ... )
  <unnamed port>:0:0: In procedure #<procedure 18d0500 at <current input>:1:0 
()>:
  <unnamed port>:0:0: Wrong type to apply: 1

  Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
  scheme@(guile-user) [1]> 

Not sure why it decided that it should display a prompt after the first
case; probably a bug somewhere...

But, your assumption is not correct, so this is not a bug, AFAIK.  R6RS
does specify an escaping syntax, however, though it is not the one you
are assuming.

Regards,

Andy
-- 
http://wingolog.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]