Re: Question regarding hybrid crunch/chicken code
| Newsgroups | gmane.lisp.scheme.chicken |
|---|---|
| Message-ID | <[email protected]> |
> Under the section https://wiki.call-cc.org/eggref/6/crunch#crunch-process-context : > > For example, this program can be compiled and run with both CHICKEN and CRUNCH: > ``` > (module main (main) > (import (scheme base) (scheme write) > (crunch process-context)) > (define (main) > (display "Hello, I'm ") > (display (vector-ref (command-line) 0)) > (newline)) > (cond-expand ((not crunched) (main)) (else)) ) > ``` > > While I can compile it with crunch, I cannot figure out how to compile this after with `cc` > Indeed - there was a typo in the mapping of the command-line primitive.. I also noticed that the implementation of command-line was totally broken, as was the example code (the vector-ref should index element 1, not 0).. Sorry. New version (0.3) has been pushed and should be available shortly. Thanks for reporting the bug. felix