Path: 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 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