🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #4319

Re: Type Conversion

#4319
From: Albert Meier
Date: Wed, 06 Jul 1988 17:24
18 lines
1442 bytes
In article <500@ethz.UUCP> mrys@bernina.UUCP (Michael Rys) writes:
>On the Ceres workstation developped at the Inst. of Inf. ETH the
>standard Modula-2 Compiler defines CARDINAL as subrange of INTEGER,
>for the range [MAX(INTEGER)..MAX(CARDINALold)] and further you may use
>then LONGINT. In the manual is written that CARDINAL is obsolete and
>should therefore be replaced by INTEGER or LONGINT wherever possible.

As far as I remember we decided in Nice to solve this problem with the
help of 3 constants "z1", "z2" and "z3" that define the bounds of the
basic numeric types. For the ETH single pass compiler, that is also used
on the Ceres this would meen z1=z2<z3, for most other compilers it means
z1<z2<z3.

 SSS   N   N  V   V      SNV       SWISS STANDARDIZATION BODY
S      NN  N  V   V      149/UK2   Programming Languages
 SSS   N N N  V   V      Chairman  Albert Meier, CH-8906 Bonstetten
    S  N  NN   V V       . E-mail  aplusl@ifi.ethz.(ch/UUCP)
 SSS   N   N    V                  ...mcvax!cernvax!ethz!aplusl
Technical Details
Message-ID: <502@ethz.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcvax!cernvax!ethz!aplusl
References: <491@ethz.UUCP> <3639@pdn.UUCP> <500@ethz.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcvax!cernvax!ethz!aplusl
From: aplusl@ethz.UUCP (Albert Meier)
Newsgroups: comp.lang.modula2
Subject: Re: Type Conversion
Keywords: Types, coercions
Message-ID: <502@ethz.UUCP>
Date: 6 Jul 88 17:24:52 GMT
References: <491@ethz.UUCP> <3639@pdn.UUCP> <500@ethz.UUCP>
Reply-To: aplusl@bernina.UUCP (Albert Meier)
Organization: ETH Zuerich, Switzerland
Lines: 18