Re: r6rs incompatibilities

2010-05-27 Thread Andy Wingo
Hi :) On Wed 26 May 2010 18:43, l...@gnu.org (Ludovic Courtès) writes: >> Heh, sure. But don't make it return SCM_UNSPECIFIED, please; make it >> treat #!r6rs as a comment. See >> http://www.r6rs.org/final/html/r6rs/r6rs-Z-H-7.html#node_sec_4.2.3. > > Functions that read comments all return ‘SCM_

Re: r6rs incompatibilities

2010-05-26 Thread Ludovic Courtès
Hi, Andy Wingo writes: > On Wed 26 May 2010 15:02, Julian Graham writes: > 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

Re: r6rs incompatibilities

2010-05-26 Thread Andy Wingo
On Wed 26 May 2010 15:02, Julian Graham writes: >>> 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 chang

Re: r6rs incompatibilities

2010-05-26 Thread Julian Graham
Hey Andy, >> 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? > >

Re: r6rs incompatibilities

2010-05-23 Thread Andy Wingo
On Sun 23 May 2010 22:52, Andy Wingo writes: > 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 affec

Re: r6rs incompatibilities

2010-05-23 Thread Andy Wingo
Hi Julian, On Sun 23 May 2010 19:24, Julian Graham 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.

Re: r6rs incompatibilities

2010-05-23 Thread Julian Graham
Hi Mike, > 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', contro

Re: r6rs incompatibilities

2010-05-23 Thread Mike Gran
> From: Julian Graham jool...@gmail.com > One thing I noticed while look at Andreas' `wak' project is that the > use of `#!r6rs' seems to be pretty common, which conflicts with > Guile's support for SCSH-style block comments.  Find attached a > (somewhat inelegant) patch that adds support for the

Re: r6rs incompatibilities

2010-05-23 Thread Julian Graham
Hello again! >  * I'm sure there are other points -- please test and reply :) Indeed! One thing I noticed while look at Andreas' `wak' project is that the use of `#!r6rs' seems to be pretty common, which conflicts with Guile's support for SCSH-style block comments. Find attached a (somewhat in

Re: r6rs incompatibilities

2010-05-21 Thread Andy Wingo
Hi, On Fri 21 May 2010 14:47, Julian Graham writes: >>  * The R6RS specifies many situations in which a conforming >>   implementation must signal a specific error. Guile doesn't really >>   care about that too much -- if a correct R6RS program would not hit >>   that error, we don't bother chec

Re: r6rs incompatibilities

2010-05-21 Thread Julian Graham
Hey Andy, >  * The R6RS specifies many situations in which a conforming >   implementation must signal a specific error. Guile doesn't really >   care about that too much -- if a correct R6RS program would not hit >   that error, we don't bother checking for it. In a lot of these cases, that's b