Michal Maru¹ka writes:
> i added these lines in scsh/scsh-read.scm:
>
> ;;; Arc à la carte
> (set-standard-read-macro! #\[ #t
> (lambda (c port)
> (list
> 'lambda '(_) (sub-read-list c port))))
>
> (set-standard-read-macro! #\] #t
> (lambda (c port)
> c port close-paren))
>
>
> made:
> $ make clean # i tried distclean, too
> $ make
>
> but it does not work:
>
> scsh/scsh-0.6 $./go
> Welcome to scsh 0.6.1 (Combinatorial Algorithms)
> Type ,? for help.
> > (map [/ _ 2] '(2 4 6 8 10))
>
> Error: illegal character read
> #\[
> #{Input-fdport #{Input-channel "standard input"}}
> >
>
>
> Can you tell me, how you got it to work?
>
As far as I can remember that module goes into initial.image.
Therefore you have to regenerate the initial.image. If I'm not wrong
this needs a working Scheme48 already installed in your system.
--
walter pelissero
http://www.pelissero.org
|