[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: r6rs incompatibilities
From: |
Andy Wingo |
Subject: |
Re: r6rs incompatibilities |
Date: |
Sun, 23 May 2010 22:52:43 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) |
Hi Julian,
On Sun 23 May 2010 19:24, Julian Graham <address@hidden> writes:
>> What happens with this patch if the file only contains the four
>> characters "#!r6" followed by EOF? Does it behave appropriately
>> after calling scm_ungetc on EOF? (I guess that would make it an
>> unterminated hash bang comment.)
>
> If the fifth character is EOF instead of 'r', control is handed to
> scm_read_scsh_block_comment (after ungetting EOF), which raises the
> appropriate unterminated comment error.
If you add a test case I'm fine with this solution; though I would
prefer it to be read as #:r6rs.
We could make this more general, as the r7 committees are wont to do: if
#! is followed by whitespace or /, then read as a block comment;
otherwise read one token. In our case, we would read #!foo as #:foo. I
don't think this change would affect anyone. What do you think?
Andy
--
http://wingolog.org/
- r6rs incompatibilities, Andy Wingo, 2010/05/21
- Re: r6rs incompatibilities, Julian Graham, 2010/05/21
- Re: r6rs incompatibilities, Julian Graham, 2010/05/23
- Re: r6rs incompatibilities, Mike Gran, 2010/05/23
- Re: r6rs incompatibilities, Julian Graham, 2010/05/23
- Re: r6rs incompatibilities,
Andy Wingo <=
- Re: r6rs incompatibilities, Andy Wingo, 2010/05/23
- Re: r6rs incompatibilities, Julian Graham, 2010/05/26
- Re: r6rs incompatibilities, Andy Wingo, 2010/05/26
- Re: r6rs incompatibilities, Ludovic Courtès, 2010/05/26
- Re: r6rs incompatibilities, Andy Wingo, 2010/05/27