Newsgroups: comp.lang.lisp
Path: cantaloupe.srv.cs.cmu.edu!nntp.club.cc.cmu.edu!hudson.lm.com!news.pop.psu.edu!news.cac.psu.edu!howland.reston.ans.net!EU.net!sun4nl!ruuinf!lucas
From: lucas@cs.ruu.nl (Peter Lucas)
Subject: Error: Cannot open the file . with AKCL
Message-ID: <CysuyE.LIp@cs.ruu.nl>
Sender: usenet@cs.ruu.nl (Six O'Clock News)
Organization: Utrecht University, Dept. of Computer Science
Date: Sat, 5 Nov 1994 14:59:01 GMT
Lines: 28

I am experiencing the problem with AKCL that after invoking
the AKCL interpreter from Unix, the newline char is not flushed.

For example, the following function

(defun Test ()
  (let ((file (read-line)))
     (open file)
     ...))

produces the error

Error: Cannot open the file . 

because read-line doesn't await input, but simply reads the
newline following the function call (Test).

I know there is a solution to this problem, but cannot find it
in the manual.

Is there someone on the net who knows what to do?

Peter
--
Peter Lucas
Dept. of Computer Science, Utrecht University
Padualaan 14, 3584 TB Utrecht, The Netherlands
Tel: + 31 30 534094; E-mail: lucas@cs.ruu.nl
