blob: 2d193c5914c9b1d9647e4ef8c959bbbb93ab7170 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{ Old file: tbs0021.pp }
{ tests compatibility of empty sets with other set and the evalution of constant sets OK 0.9.3 }
{ tests constant set evalution }
var
a : set of byte;
const
b : set of byte = [0..255]+[9];
type
tcommandset = set of byte;
const
cmZoom = 10;
cmClose = 5;
cmResize = 8;
cmNext = 12;
cmPrev = 15;
CONST
CurCommandSet : TCommandSet = ([0..255] -
[cmZoom, cmClose, cmResize, cmNext, cmPrev]);
commands : tcommandset = [];
var
CommandSetChanged : boolean;
PROCEDURE DisableCommands (Commands: TCommandSet);
BEGIN
{$IFNDEF PPC_FPK} { FPK bug }
CommandSetChanged := CommandSetChanged OR
(CurCommandSet * Commands <> []); { Set changed flag }
{$ENDIF}
CurCommandSet := CurCommandSet - Commands; { Update command set }
END;
begin
a:=[byte(1)]+[byte(2)];
end.
|