Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site ru-cs44.UUCP Path: utzoo!linus!security!genrad!mit-eddie!mit-vax!eagle!harpo!floyd!vax135!ukc!ru-cs44!adrian From: adrian@ru-cs44.UUCP Newsgroups: net.lang.mod2 Subject: Re: SET types Message-ID: <557@ru-cs44.UUCP> Date: Mon, 17-Oct-83 17:45:55 EDT Article-I.D.: ru-cs44.557 Posted: Mon Oct 17 17:45:55 1983 Date-Received: Wed, 19-Oct-83 21:06:27 EDT References: <1062@pur-phy.UUCP> Organization: Reading Univ. UK. Lines: 22 Again, the Univ. NSW M2 compiler for UNIX v7, derived from ETH RT-11 compiler: Our compiler enforces a limit of 16 things per set. See the section 6.6 in the report: "A set type defined as SET OF T comprises all sets of values of its base type T. This must be a subrange of the integers between 0 and WordSize-1 (in our case 15), or a (subrange of an) enumeration type with at most WordSize values." That seems pretty clear to me, the report limits sets to WordSize elements, and, thus, SET OF CHAR is not allowed. That is not to say that I agree with the restriction. It's one of the features of M2 that I'll get round to changing one day. As I recall, our first PASCAL compiler had a similar restriction ... -- Adrian Pell ({vax135,mcvax,edcaad}!ukc!ru-cs44!adrian) Computer Science Dept. University of Reading UK