[Larceny-users] using srfi 27 and some other issues
Jed Davis
jld at ccs.neu.edu
Sun Mar 1 16:49:52 EST 2009
On Sat, Feb 28, 2009 at 07:28:17PM +0100, Marijn Schouten (hkBst) wrote:
> My program uses SRFI 27 (random sources) and so I added a "(require 'srfi-27)"
> at the beginning. Then I got this:
>
> $ larceny -nobanner -- ising.scm -e "(main 100)"
>
> Error: Undefined global variable "srfi-9".
> Entering debugger; type "?" for help.
> debug>
>
> So I changed that to "(require 'srfi-9) (require 'srfi-27)" but it makes no
> difference.
Try "(require 'srfi-0) (require 'srfi-27)". The reason it's trying to
use srfi-9 as a variable is that the macro definition for cond-expand,
from SRFI 0, is missing; thus, the cond-expand form is treated as a
series of function applications and variables, of which the "srfi-9"
leaf is the first to be evaluated.
--
(let ((C call-with-current-continuation)) (apply (lambda (x y) (x y)) (map
((lambda (r) ((C C) (lambda (s) (r (lambda l (apply (s s) l)))))) (lambda
(f) (lambda (l) (if (null? l) C (lambda (k) (display (car l)) ((f (cdr l))
(C k))))))) '((#\J #\d #\D #\v #\s) (#\e #\space #\a #\i #\newline)))))
More information about the Larceny-users
mailing list