Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!apple!apple.com!chewy From: chewy@apple.com (Paul Snively) Newsgroups: comp.lang.lisp Subject: Re: "Pipes" in CL? Message-ID: <5438@internal.Apple.COM> Date: 27 Nov 89 23:12:14 GMT References: <2898@trantor.harris-atd.com> Sender: usenet@Apple.COM Organization: Apple Computer, Inc. Lines: 28 In article <2898@trantor.harris-atd.com> mac@trantor.harris-atd.com (Mike McDonald) writes: > Does anyone know how to create in Common Lisp > the equivilant to a Unix pipe? I need to create > a stream that READ can use but I don't have all > of the text when creating the stream, so things > like MAKE-STRING-INPUT-STREAM won't do. I'm using > Allegro Common Lisp, so if anyone knows of an > internal function, that would be fine. > > > Mike McDonald I don't think that you gave quite enough information, Mike. For example, using Allegro Common Lisp on the Macintosh, I can do what you ask quite easily, because streams are objects within the Object Lisp system, and all that I have to do to create a new kind of stream is subclass *STREAM* and provide a few methods, which can do their thing "lazily," if needs be. Other versions of Allegro Common Lisp may or may not support this (for example, I do not know whether any of the UNIX Allegros running Franz's Flavors allow this kind of stream definition or not). __________________________________________________________________________ Just because I work for Apple Computer, Inc. doesn't mean that they believe what I believe or vice-versa. __________________________________________________________________________ C++ -- The language in which only friends can access your private members. __________________________________________________________________________