🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #4708

Re: New edition of Modula-2 bible, some comments

#4708
From: Ceriel Jacobs
Date: Mon, 13 Mar 1989 08:23
22 lines
1633 bytes
In article <2132@ceriel.cs.vu.nl> I wrote:
>>     TRUNC(x), HIGH(a), ORD(ch), and SIZE(T) are of type INTEGER
>>However, in paragraph 10.2 of the report, page 150, we read:
>>  ... ORD(x)	ordinal number (of type CARDINAL) ...

In article <333@trwrc.UUCP> agnew@trwrc.UUCP (Robert A. Agnew) writes:
>Remember that in the 4th edition CARDINAL is no longer a type and is now a
>subtype of INTEGER range [0..32767]. In fact, either an INTEGER or CARDINAL
>could be used here.

This is simply not true. In the preface to the 4th edition there only is a
remark that many Modula-2 implementations treat a CARDINAL like this.
However, in paragraph 7.2 of the book (4th edition), we read:
  ... Modula does not permit the use of operands of type INTEGER and CARDINAL
  in the same expression (so-called mixed expressions) ...
The whole book treats CARDINAL as a different type from INTEGER, not as a
subrange type of INTEGER (just like the 3rd edition).

-- 
Ceriel Jacobs, Dept. of Mathematics and Computer Science, Vrije Universiteit,
De Boelelaan 1081, 1081 HV Amsterdam, The Netherlands
Voice: +31 20 5485577 			Email:	ceriel@cs.vu.nl
Technical Details
Message-ID: <2149@ceriel.cs.vu.nl>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!decwrl!sun!pitstop!sundc!seismo!uunet!mcvax!hp4nl!botter!star.cs.vu.nl!ceriel
References: <2132@ceriel.cs.vu.nl> <333@trwrc.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!decwrl!sun!pitstop!sundc!seismo!uunet!mcvax!hp4nl!botter!star.cs.vu.nl!ceriel
From: ceriel@cs.vu.nl (Ceriel Jacobs)
Newsgroups: comp.lang.modula2
Subject: Re: New edition of Modula-2 bible, some comments
Message-ID: <2149@ceriel.cs.vu.nl>
Date: 13 Mar 89 08:23:38 GMT
References: <2132@ceriel.cs.vu.nl> <333@trwrc.UUCP>
Reply-To: ceriel@cs.vu.nl (Ceriel Jacobs)
Organization: VU Informatica, Amsterdam
Lines: 22