Hello,
We have a small query regarding sets in GPC.
Here is the problem :
We have defined a set in a unit and my program is using the this defined set. But the compiler says that the identifier is undeclared. The following is my program and the unit. =========================
program SETT; uses setsunit; var c : Myset; begin c:=[fs_auto]; testSET(c); end. ============================ unit setsunit; interface type Myset = set of (fs_auto,fs_trans) ; procedure testSET(x:Myset) implementation procedure testSET(x:myset); begin if x=[fs_auto] then writeln('1'); end;
end.
Can you kindly help us on this? Thanks and Regards Anuradha.
-- S.Anuradha Generic Data Tools, Alcatel Chennai. Alcanet : 2-757-7123
Anuradha wrote:
We have a small query regarding sets in GPC.
Here is the problem :
We have defined a set in a unit and my program is using the this defined set. But the compiler says that the identifier is undeclared. The following is my program and the unit.
From the to-do list:
: item 20011111: enumeration types declared within a set or record : type or variable or constant declaration or the case selector of a : record within a unit are not visible in the main program : (fjf211*.pas, fjf239[ab].pas)
So, get a version newer than 20011111.
Frank