Re: reading/writing strings

Jonathan Rees <[email protected]> Sun, 4 Nov 2012 13:36:03 -0500
Newsgroups gmane.lisp.scheme.scheme48
Message-ID <[email protected]>
I believe I reported this bug a few years back. Mike S said he had fixed it, and the fix is in the source code repository.
http://www.s48.org/internal/development.html

Scheme 48 has the opposite philosophy of Postel's law, and tries to be conservative in what it accepts, i.e. to reject as many unportable programs as possible (except when you 'step outside the box' and use ,-commands). This would suggest that \' in a string should be an error.

Best
Jonathan

On Nov 4, 2012, at 10:29 AM, Taylor R Campbell wrote:

>   Date: Sun, 4 Nov 2012 01:38:00 -0700
>   From: Heath Putnam <[email protected]>
> 
>   If you type "'" at the command line, the system writes back "\'".
>   If you type "\'" in, the system fails, because read doesn't expect #\'
>   to be escaped.
> 
> Sounds like a relatively recent bug (OK, I guess 1.3 is pretty old
> now):
> 
> Welcome to Scheme 48 1.3 (made by riastradh on Fri Jun 10 14:06:31 UTC 2011)
> Copyright (c) 1993-2005 by Richard Kelsey and Jonathan Rees.
> Please report bugs to [email protected].
> Get more information at http://www.s48.org/.
> Type ,? (comma question-mark) for help.
>> "'"
> "'"
>