Re: Suggested change to STk

From: Shiro Kawai <shiro_at_sqla.com>
Date: Thu, 04 Sep 1997 11:37:27 -0700

If you cannot link stk into your program for some reason, how about
writing small scheme code including your own repl, which doesn't
echo toplevel results? (It's actually not read-eval-print-loop, but
read-eval-loop)

I tested following quick hack just now and seems to work. But maybe
in your project you have some other reason which prevents you from
doing it...

  % cat t.stk
  (define (repl)
    (eval (read))
    (flush)
    (repl))
  (repl)

  % stk -l t.stk
  Welcome to the STk interpreter version 3.1 [IRIX-5.X-IPxx]
  Copyright (I)(B 1993-1996 Erick Gallesio - I3S - CNRS / ESSI <eg_at_unice.fr>
  'a
  'b
  (display "abc\n")
  abc
  (quit)
  %

--
Shiro KAWAI
  Square USA Inc.   4640 Admiralty Way, Suite 1200, Marina del Rey CA 90292
  Phone  310 302 9500        Fax  310 302 9550       E-mail  shiro_at_sqla.com
#"The most important things are the hardest things to say" --- Stephen King
Received on Thu Sep 04 1997 - 20:37:01 CEST

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST