[fpc-pascal] star operator on enum types

2023-01-26 Thread Giuliano Colla via fpc-pascal
I found in a fpc program a statement sort of: Type   TSomeType = (a,b,c)   TaType = set of TSometype var   setA,setB: TaType; . *if setA * setB = [] then doSomething*; which I found very smart to detect if the two sets have some common elements, but I've been unable to find in the fpc docum

Re: [fpc-pascal] star operator on enum types

2023-01-26 Thread Sven Barth via fpc-pascal
Giuliano Colla via fpc-pascal schrieb am Do., 26. Jan. 2023, 18:43: > I found in a fpc program a statement sort of: > Type > TSomeType = (a,b,c) > TaType = set of TSometype > var > setA,setB: TaType; > . > *if setA * setB = [] then doSomething*; > > which I found very smart to detect if

Re: [fpc-pascal] star operator on enum types

2023-01-26 Thread Giuliano Colla via fpc-pascal
Il 26/01/2023 18:52, Sven Barth via fpc-pascal ha scritto: Giuliano Colla via fpc-pascal > schrieb am Do., 26. Jan. 2023, 18:43: I found in a fpc program a statement sort of: Type   TSomeType = (a,b,c)   TaType = set of TSometype var