BitSets in GNU PASCAL

Waldek Hebisch hebisch at math.uni.wroc.pl
Mon Apr 28 02:39:20 CEST 2014


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
hebisch at math.uni.wroc.pl 



More information about the Gpc mailing list