Re: BitSets in GNU PASCAL

Waldek Hebisch <[email protected]>
Newsgroups gmane.comp.compilers.gpc
Message-ID <[email protected]>
Kavitha Manjunath wrote:
> Hi, Is BitSet available in GPC. If not, can you please tell me how to
> add bitsets as part of GPC.

What do you mean by 'BitSet'?.  In GPC both:

packed array [1..20] of 0.1;

and

packed array [1..200] of Boolean;

define array type such that each element occupies exactly 1 bit.
Or maybe you just want set:

set of [1..200];

If you need variable size look at schema types.  Set schema
from Extended Pascal currently is unimplemented, but array
schema work.

-- 
                              Waldek Hebisch
[email protected] 

_______________________________________________
Gpc mailing list
[email protected]
https://www.g-n-u.de/mailman/listinfo/gpc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.