Re: [fpc-pascal] evaluation of set constant

2010-12-23 Thread Torsten Bonde Christiansen
On 2010-12-22 14:50, Jonas Maebe wrote: On 22 Dec 2010, at 14:15, Torsten Bonde Christiansen wrote: Is it possible to create a constant of a set that is based on an evaluation of other constants? (using fpc 2.4.2) A basic case could look like this: type TMyType = (a, b, c ,d); TMyTypes =

Re: [fpc-pascal] evaluation of set constant

2010-12-22 Thread Howard Page-Clark
On 22/12/10 1:15, Torsten Bonde Christiansen wrote: type TMyType = (a, b, c ,d); TMyTypes = set of TMyTypes; const SetX:TMyTypes = (a, b); SetY:TMyTypes = (c, d); SetCombined: TMyTypes = SetX + SetY; // this gives me an "Error: Illegal expression" Because you

Re: [fpc-pascal] evaluation of set constant

2010-12-22 Thread Jonas Maebe
On 22 Dec 2010, at 14:15, Torsten Bonde Christiansen wrote: Is it possible to create a constant of a set that is based on an evaluation of other constants? (using fpc 2.4.2) A basic case could look like this: type TMyType = (a, b, c ,d); TMyTypes = set of TMyTypes; const SetX:TM

[fpc-pascal] evaluation of set constant

2010-12-22 Thread Torsten Bonde Christiansen
Hi List. Is it possible to create a constant of a set that is based on an evaluation of other constants? (using fpc 2.4.2) A basic case could look like this: type TMyType = (a, b, c ,d); TMyTypes = set of TMyTypes; const SetX:TMyTypes = (a, b); SetY:TMyTypes = (c, d);