Re: [Chicken-users] [Chicken-hackers] [Scheme-reports] R7RS-small draft ratified by Steering Committee

2014-07-12 Thread John Cowan
Alex Shinn scripsit: There are actually many implementations for which this is an error. Notably R6RS requires it to be an error. Not too many outside R6RS, actually: only RScheme, SXM, SigScheme, UMB, Dfsch, Foment, Chibi. Schemes typically use the name `add1' for this. This is only

Re: [Chicken-users] [Chicken-hackers] [Scheme-reports] R7RS-small draft ratified by Steering Committee

2014-07-12 Thread Alex Shinn
On Sat, Jul 12, 2014 at 4:03 PM, John Cowan co...@mercury.ccil.org wrote: Alex Shinn scripsit: There are actually many implementations for which this is an error. Notably R6RS requires it to be an error. Not too many outside R6RS, actually: only RScheme, SXM, SigScheme, UMB, Dfsch,

[Chicken-users] csc and standard input

2014-07-12 Thread Michele La Monaca
Hi all, I think it would be useful if csc were able to work directly from the standard input (e.g. in case of no source files). For example: csc -o quick_test [paste code] Ctrl-D ./quick_test or cat f.scm | preprocessor | csc ./a.out On most Unixes you can obtain the result with /dev/stdin,

Re: [Chicken-users] R7RS-small draft ratified by Steering Committee

2014-07-12 Thread Peter Bex
On Fri, Jul 11, 2014 at 10:58:39AM -0700, ceving wrote: Am Freitag, 8. November 2013 18:57:32 UTC+1 schrieb John Cowan: The final draft of R7RS-small has been ratified by a unanimous vote of the Scheme Language Steering Committee.

Re: [Chicken-users] csc and standard input

2014-07-12 Thread Evan Hanson
Hi Michele, csc(1) will read source from standard input given the filename -. $ csc -o quick_test - (print 1) ^D $ ./quick_test 1 Whether csc(1) should default to standard input when no filename is given is a matter for debate, but that's how it's done as things are.

Re: [Chicken-users] [Chicken-hackers] [Scheme-reports] R7RS-small draft ratified by Steering Committee

2014-07-12 Thread John Cowan
Alex Shinn scripsit: That's still a lot more than provide 1+ out of the box (do any other than Guile?). Provide `1+` but not `add1`: MIT, Guile, SCM, XLisp, Rep, Elk, FemtoLisp, Inlab. Provide `add1` but not `1+`: Racket, Chicken, SISC, Vicare, IronScheme, RScheme, SXM. Provide both: Chez,

[Chicken-users] Determine if program has been compiled

2014-07-12 Thread Christopher Collins
Hello chicken users, Is there a way to determine, in code, whether a chicken program has been compiled? I am thinking of something similar to: (cond-expand (chicken-script ... ) ...but with an identifer different from chicken-script. It is possible that I'm asking the wrong

Re: [Chicken-users] Determine if program has been compiled

2014-07-12 Thread Peter Bex
On Sat, Jul 12, 2014 at 11:09:24AM -0700, Christopher Collins wrote: Hello chicken users, Is there a way to determine, in code, whether a chicken program has been compiled? I am thinking of something similar to: (cond-expand (chicken-script ... ) ...but with an identifer

Re: [Chicken-users] Determine if program has been compiled

2014-07-12 Thread Mario Domenech Goulart
Hi Christopher, On Sat, 12 Jul 2014 11:09:24 -0700 Christopher Collins ccollins47...@gmail.com wrote: Is there a way to determine, in code, whether a chicken program has been compiled? I am thinking of something similar to: (cond-expand (chicken-script ... ) ...but with an identifer

Re: [Chicken-users] Determine if program has been compiled

2014-07-12 Thread Christopher Collins
On Sat, Jul 12, 2014 at 11:12 AM, Peter Bex peter@xs4all.nl wrote: There's a cond-expand identifier called compiling. See also http://wiki.call-cc.org/man/4/Non-standard%20macros%20and%20special%20forms#cond-expand for other identifiers that you can dispatch on with