Path: utzoo!utgpu!attcan!uunet!lll-winken!ncis.llnl.gov!helios.ee.lbl.gov!pasteur!ucbvax!decwrl!purdue!bu-cs!encore!pierson@mist From: pierson@mist (Dan Pierson) Newsgroups: comp.lang.misc Subject: Re: Turing Message-ID: <4745@xenna.Encore.COM> Date: 23 Jan 89 22:41:40 GMT References: <8901152132.AA06967@king.csri.toronto.edu> Sender: news@Encore.COM Reply-To: pierson@mist (Dan Pierson) Organization: Encore Computer Corp Lines: 26 In-reply-to: sam@csri.toronto.edu (Samuel Weber) In article <8901152132.AA06967@king.csri.toronto.edu>, sam@csri (Samuel Weber) writes: >Besides, the Modula2 equivalent to the turing statement > put "item:", number, " name:", name, "has value", realvalue >is > InOut.WriteString("item"); > InOut.WriteInt(number,0); > InOut.WriteString(" name:"); > InOut.WriteString(name); > InOut.WriteString("has value"); > RealInOut.WriteReal(realvalue,0); > InOut.WriteLn; >which I do not think is an improvement. Fortunately, the Modula-3 version is something like: PutLine ("item:" & Int(number) & " name:" & name & " has value" & Real(realvalue)); Assuming an IO module that includes the procedure PutLine. While I still prefer printf, this is acceptable to me. -- dan In real life: Dan Pierson, Encore Computer Corporation, Research UUCP: {talcott,linus,necis,decvax}!encore!pierson Internet: pierson@multimax.encore.com