Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!decwrl!pa.dec.com!src.dec.com!src.dec.com!muller From: muller@src.dec.com (Eric Muller) Newsgroups: comp.lang.modula3 Subject: why not Wr.T <: MUTEX ? Message-ID: <1991Jun21.135117.15545@src.dec.com> Date: 21 Jun 91 20:51:17 GMT Sender: news@src.dec.com (News) Reply-To: muller@src.dec.com (Eric Muller) Organization: DEC Systems Research Center Lines: 14 How come that "Every writer is a monitor" is stated in the description of the Wr interface [System Programming with M3, p132], but that we are just told TYPE T <: ROOT and have no access to this monitor from the Wr interface ? Suppose that I have a Wr.T and I want to print the two texts t1 and t2 on it, and be sure that t1 and t2 are one just after the other in the writer. I would like to avoid Wr.PutText (wr, t1 & t2) as this can be expensive. How I am supposed to do that ? It is ok to import WrClass and to WrClass.Lock (wr) ? -- Eric.