Gentoo Archives: gentoo-lisp

From: Nick <gentoo-lisp@××××××.uk>
To: gentoo-lisp@l.g.o
Subject: [gentoo-lisp] mit-scheme-c problems
Date: Wed, 23 Dec 2009 08:51:37
Message-Id: 20091223085633.GA2982@slinky.lan
Hi there,

I'm just learning Lisp, as I start to work through the Structure and 
Interpretation of Computer Programs book, and I'm having troubles 
getting the mit-scheme-c to be co-operative.

I rather suspect that the error lies with me being stupid, but I'd 
be everso grateful for a little help.

Essentially, whenever I try to load any scheme from a file into 
mit-scheme-c, it mis-reads it. A transcript will do well to 
illustrate:

-------------------------------------------------
echo '(define testvar 2)' | scheme
MIT/GNU Scheme running under GNU/Linux
Type `^C' (control-C) followed by `H' to obtain information about interrupts.

Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
    1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007 Massachusetts Institute of Technology
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Image saved on Wednesday December 23, 2009 at 4:25:28 AM
  Release 7.7.90.+ || Microcode 15.1 || Runtime 15.7

1 ]=>
;Unbound variable: |testvarâ|
;To continue, call RESTART with an option number:
; (RESTART 3) => Specify a value to use instead of |testvarâ|.
; (RESTART 2) => Define |testvarâ| to a given value.
; (RESTART 1) => Return to read-eval-print level 1.

2 error>
End of input stream reached.
Happy Happy Joy Joy.
-------------------------------------------------

The same thing happens if I try to load a file, either using 
mit-scheme-c < testfile or mit-scheme-c --load testfile

This happens with both versions in the Lisp overlay, 20080130 and
20090107.

As I say, seems like it must be me being stupid, but I cannot see 
how.

Thanks alot,

Nick


-- 
GPG : 0x04E4653F | 9732 D7C7 A441 D79E FDF0  94F6 1F48 5674 04E4 653F

Replies

Subject Author
Re: [gentoo-lisp] mit-scheme-c problems "Marijn Schouten (hkBst)" <hkBst@g.o>