[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: connection to tcl/tk



# From: haible@ma2s2.mathematik.uni-karlsruhe.de (Bruno Haible)
# 
# CLISP supports unidirectional streams to other programs through the
# functions MAKE-PIPE-INPUT-STREAM and MAKE-PIPE-OUTPUT-STREAM. I haven't
# implemented bidirectional streams because that could lead to deadlocks.
# See impnotes.txt for details.
...
# You may simplify this by using FIFOs (named pipes) instead of ordinary files.
# Try something like that:
# 
#   (shell "mkfifo /tmp/wish-in")
#   (shell "mkfifo /tmp/wish-out")
#   (setq *lisp-to-wish-stream*
#     (make-two-way-stream (open "/tmp/wish-out" :direction :input)
#                          (open "/tmp/wish-in" :direction :output)
#   ) )
#   (shell "wish < /tmp/wish-in > /tmp/wish-out")
#   (delete-file "/tmp/wish-in")
#   (delete-file "/tmp/wish-out")
#

Why not implement MAKE-PIPE-IO-STREAM in terms of this solution and
make it part of CLISP?