Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!helios!tamuts!e343ca From: e343ca@tamuts.tamu.edu (Colin Allen) Newsgroups: comp.lang.lisp Subject: Re: weird common lisp feature Keywords: read, read-line Message-ID: <12414@helios.TAMU.EDU> Date: 21 Feb 91 04:35:39 GMT References: <12413@helios.TAMU.EDU> Sender: usenet@helios.TAMU.EDU Organization: Texas A&M University Lines: 17 In article <12413@helios.TAMU.EDU> e343ca@tamuts.tamu.edu I asked: >Can anyone tell me why foo1 below appears to execute the read-line >before the print, but foo2 executes the print before the read? > >(defun foo1 () (print 'hello) (read-line)) >(defun foo2 () (print 'hello) (read)) I should add that I have checked this code now in Kyoto and Franz Allegro Common Lisp and the weird behavior occurs only in kcl. So possibly this is a bug in kcl. Anyone run into this before? Colin Allen e343ca@tamuts.tamu.edu Department of Philosophy Texas A&M University (409) 845-3606 College Station, TX 77843-4237