Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!DKAUNI2.BITNET!UI0T From: UI0T@DKAUNI2.BITNET (Thomas Koenig) Newsgroups: comp.lang.modula2 Subject: Re: (in)compatibility between INTEGER and CARDINAL Message-ID: <"89-10-03-21:40:51.72*UI0T"@DKAUNI2.BITNET> Date: 3 Oct 89 20:45:52 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: Modula2 ListOrganization: The Internet Lines: 19 X-Unparsable-Date: Tue, 3 Oct 89 21:40:00 LCL writes: > Can't you say something like > > FOR i:= 1 to CARDINAL(HIGH(n)) DO BEGIN > > etc.. > ? > > -Mark Unfortunately, this is not possible in SPC-Modula2 - I get an error which sounds something like 'illegal kind of procedure result'. So I guess I'll drop CARDINAL from my Modula 'vocabulary' altogether and just try to rewrite whatever comes my way from other programmers (sigh) ... Thomas Koenig UI0T@DKAUNI2.BITNET UI0T%DKAUNI2.BITNET@CUNYVM.CUNY.EDU (soon) UI0T@IBM3090.RZ.UNI-KARLSRUHE.DE