🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #6219

Re: Turing

#6219
From: Dan Pierson
Date: Mon, 23 Jan 1989 22:41
26 lines
1490 bytes
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
Technical Details
Message-ID: <4745@xenna.Encore.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!lll-winken!ncis.llnl.gov!helios.ee.lbl.gov!pasteur!ucbvax!decwrl!purdue!bu-cs!encore!pierson@mist
References: <8901152132.AA06967@king.csri.toronto.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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)