Regards,
Andreas
ETH Zurich
Prof. Dr. Andreas Fischlin
Systems Ecology - Institute of Integrative Biology
CHN E 21.1
Universitaetstrasse 16
8092 Zurich
SWITZERLAND
address@hidden<mailto:address@hidden>
www.sysecol.ethz.ch
+41 44 633-6090 phone
+41 44 633-1136 fax
+41 79 221-4657 mobile
Make it as simple as possible, but distrust it!
________________________________________________________________________
On 10/11/2011, at 22:43 , john o goyo wrote:
As we all know, PIM allows missing values in CASE statements but ISO does not.
At present, gm2 enforces the ISO restriction regardless of which PIM is
specified. (A simple example may be found below.)
What should gm2 do? (The problem arises, of course, in compiling existing
code.)
john
==============================
MODULE Test;
TYPE
Choice = (colour, size, weight);
ItemType = RECORD
CASE c :Choice OF
colour: col :CHAR;
|size: s :CARDINAL;
(*
* PIM allows missing values but ISO does not.
*)
END (*CASE*);
END (*ItemType*);
VAR
item :ItemType;
BEGIN
item.col := 'R';
END Test.
==============================