On Fri, 13 Dec 2013 18:35:44 +0100
Daniel Beecham <[email protected]> wrote:

Hi Daniel

> $ cat read.ss
> (let ((s (read-line))) (print s))
> $ csc read.ss
> $ ./read
> 
> Error: unbound variable: read-line
> 
>     Call history:
> 
>     read.ss:1: read-line    <--
> 
> $ csi read.ss
> [...]
> ; loading read.ss ...
> <input>
> <input>
> #;1> <C-d>
> 
> $ chicken --version
> [...]
> Version 4.8.0.3 (Stability/4.8.0) (rev 091c3d9)
> linux-unix-gru-x86-64 [ 64bit manyargs dload ptables ]
> compiled 2013-03-13 on aeryn.xorinia.dim (Darwin)
> [...]
> 
> Any ideas why this might be happening?

Did you load the readline egg in your read.ss file (use readline)?

The CSI interpreter preloads some modules/eggs for ease of use, readline is one 
of them.
On compile time these are not available, you have to make sure that you load 
them in your CHICKEN Scheme file. 

Hope this helps!

Cheers
Tim

_______________________________________________
Chicken-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to