Re: Compiler Problem

MaysonG@aol.com
Mon, 19 Aug 1996 11:00:32 -0400

Stan,

This module shows the same behavior on my 68040 Mac: after a keyboard
interrupt, there is an error marker "code too large"
at the CASE statement. The keyboard interrupt occurs in:
DevHostOPL.GenByte
DevHostOPL.GenWord
DevHostOPL.GenLongWord
DevHostOPL.GenCaseJump
...

Mayson

> Hi all,
> The following program puts my compiler into an endless loop:
> =========================================================
> MODULE PrivColorTest;
> IMPORT Ports, Out;
>
> PROCEDURE OutColor* (c: Ports.Color);
> BEGIN
> CASE c OF
> Ports.black: Out.String("black")|
> Ports.red: Out.String("red")|
> Ports.green: Out.String("green")|
> Ports.blue: Out.String("blue")
> ELSE
> Out.String("other")
> END
> END OutColor;
>
> END PrivColorTest.
> =========================================================
> but it will compile ok if I omit the last (blue) case. I
> am using version 1.2.1 on a PowerMac. Can someone test
> whether it gives the compiler problems on your system?
> Thanks.
>
> Stan Warford
> Pepperdine University
> warford@pepperdine.edu