What's the problem? For me, this program outputs "value wasn't 1" as it should be.
If I change the first assignment to "test := 1" I get "subvalue was 5", so everything okay here, too.
Damn! :-)
Well I get:
other.pas: In function `program_Testcase': other.pas:15: parse error before `Otherwise' other.pas:15: undeclared identifier `Otherwise' (first use this function) other.pas:15: (Each undeclared identifier is reported only once other.pas:15: for each function it appears in.) other.pas:16: missing `..' other.pas:16: parse error before `End'
I'm using gpc 2.8.1 on Solaris. I downloaded a binary distrib. a few weeks ago.
Very strange...
regards, -- Jon Ashley
********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. This email has been swept for the presence of known computer viruses. **********************************************************************