Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uunet!pmafire!mica.inel.gov!INEL.GOV!rkf From: rkf@INEL.GOV (Raymond K. Fink) Newsgroups: comp.lang.lisp Subject: Re: Problem with defstruct printing in Common Lisp Message-ID: <1991Mar15.165013.22368@inel.gov> Date: 15 Mar 91 16:50:13 GMT References: Sender: news@inel.gov Reply-To: rkf@inel.gov Organization: Idaho National Engineering Laboratory Lines: 25 In article , dsharma@kaffa.anu.oz.au (Dharmendra Sharma) writes: >I would like to be able to print a defstruct object on more than 1 >stream i.e. on the screen and to a file. How can I do it with a >predefined :print-function? >Thanx. 0- Presuming that the :print-function takes a stream argument...... 1- First create a stream to the file 2- use (make-broadcast-stream *standard-output*) to create a stream that will broadcast stuff to multiple streams. Ray Fink -- Idaho National Engineering Laboratory -- Idaho Falls ID rkf@inel.gov 208-526-9323 ========== long legal disclaimer follows, press n to skip =========== Neither the United States Government or the Idaho National Engineering Laboratory or any of their employees, makes any warranty, whatsoever, implied, or assumes any legal liability or responsibility regarding any information, disclosed, or represents that its use would not infringe privately owned rights. No specific reference constitutes or implies endorsement, recommendation, or favoring by the United States Government or the Idaho National Engineering Laboratory. The views and opinions expressed herein do not necessarily reflect those of the United States Government or the Idaho National Engineering Laboratory, and shall not be used for advertising or product endorsement purposes.