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 =
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
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
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);