Subj : about the last post
To : Chris Hoppman
From : Jasen Betts
Date : Tue Sep 28 2004 09:08 am
Hello Chris.
26 Sep 04 13:39, you wrote to all:
CH> Okay, I got it wrong in the last post. This is how I have it setup.
CH> program testset;
CH> uses crt;
CH> type
CH> aset = 1..24;
try this:
aset = 0..23;
als try this
aset = 7..16;
sets of integers aren't packed they are bit-aligned on 0.
so bits in the set that represent the elements look like this:
07 06 05 40 03 02 01 --
15 14 13 12 11 10 09 08
23 22 21 20 19 18 17 16
-- -- -- -- -- -- -- 24
with your enumerated type
however
CH> bset = (rlogon, {1}
ord(rlogin) == 0
CH> fnodeletion); {24}
ord(nodeletion) == 23
In that way it looks like a aet of 0..23 to the part of the compiler which
handles sets.
07 06 05 40 03 02 01 00
15 14 13 12 11 10 09 08
23 22 21 20 19 18 17 16
and that only takes 3 bytes
Jasen
--- GoldED+/LNX 1.1.4.7
* Origin: (3:640/1042)