Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!rex!ames!uhccux!munnari.oz.au!bruce!merlin!paulg From: paulg@bhpmrl.oz.au (Paul Gallagher) Newsgroups: comp.lang.pascal Subject: Re: Help Me!!! What's wrong with this simple problem? Message-ID: <1990Nov30.111012.17700@bhpmrl.oz.au> Date: 30 Nov 90 11:10:12 GMT References: <527@shum.UUCP> <19956@oolong.la.locus.com> <28893@shamash.cdc.com> Sender: usenet@bhpmrl.oz.au (USEnet nntp account) Organization: BHP Melbourne Research Laboratories, AUSTRALIA Lines: 24 Geez, everyone's jumping in on this question! The problem (j is used as accumulator and hence can't legally store -7) has already been pointed out. Some of the work arounds are just over the top though. E-Z-est solution is just to use: .. i:=-10+j; .. This doesn't violate range conditions, so you can compile away with {$R+} to your hearts content. More importantly though, this is NOT a compiler error. It's actually documented in the (TP5.5 at least) manuals, but god knows where! /\/\ Paul Gallagher, PC Support Officer, / / /\ Computer Systems Group, / / / \ BHP Melbourne Research Laboratories / / / /\ \ 245 Wellington Rd Mulgrave Vic 3170 AUSTRALIA \ \/ / / / Phone : +61-3-560-7066, Fax : +61-3-561-6709 \ / / / ACSnet : paulg@bhpmrl.OZ.AU \/\/\/ Brought to you by Super Global Mega Corp .com