Article View: comp.sys.transputer
Article #96Re: compiler error
From: Jan Vorbrueggen
Date: Fri, 07 Aug 1992 16:13
Date: Fri, 07 Aug 1992 16:13
18 lines
1328 bytes
1328 bytes
In article <5613@m1.cs.man.ac.uk> bane@vtx.ma.man.ac.uk) writes: > SEQ messages.to.send=0 FOR Min(clockwise, anticlockwise) >[rest of code eliminated] > > The COMPILER ERROR 'occurred' at the IF statement. But, many hours later, I > discover that the compiler was totally unable to cope with the replicated > SEQ statement having the count defined by a function... ;( > > Michael According to the occam reference manual, the count can ba an expression, and an expression can certainly contain a function. Are you sure that your function doesn't evaluate to a negative value at compile time. (Although I'm not sure the occam compiler actually does the obvious thing and evalute such a function at compile time...) Jan Vorbrueggen, jan@neuroinformatik.ruhrunibochum.de
Technical Details
Message-ID:
<JAN.92Aug7121302@pallas.neuroinformatik.ruhr-uni-bochum.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!Sirius.dfn.de!rz.ruhr-uni-bochum.de!janReferences:
<5593@m1.cs.man.ac.uk> <5613@m1.cs.man.ac.uk>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!Sirius.dfn.de!rz.ruhr-uni-bochum.de!jan From: jan@pallas.neuroinformatik.ruhr-uni-bochum.de (Jan Vorbrueggen) Newsgroups: comp.sys.transputer Subject: Re: compiler error Message-ID: <JAN.92Aug7121302@pallas.neuroinformatik.ruhr-uni-bochum.de> Date: 7 Aug 92 16:13:02 GMT References: <5593@m1.cs.man.ac.uk> <5613@m1.cs.man.ac.uk> Organization: Inst. f. Neuroinformatik, Ruhr-Universitaet Bochum Lines: 18 In-reply-to: bane@vtx.ma.man.ac.uk)'s message of 6 Aug 92 19:25:17 GMT