Go to the first, previous, next, last section, table of contents.

Information of the SET_TYPE implementation in GPC.

Juki <jtv@hut.fi>
Last modified: Wed Sep 22 11:47:27 1993

CARD_EXPR:      returns the number of set elements currently in the set
                Extended Pascal.

UNION           SetC := SetA + SetB; union of the sets
BIT_OR_EXPR

DIFF            SetC := SetA - SetB; If in A, but not in B.
BIT_ANDTC_EXPR  (and tc_optab has vanished from gcc-2, so this
                will be done "SetA and (not (SetB))")

INTERSECTION    SetC := SetA * SetB; If in A and in B
BIT_AND_EXPR

SYMDIFF         SetC := SetA >< SetB; set symmetric difference
BIT_XOR_EXPR    (C if only in A or only in B (Boolean XOR) 
                Extended Pascal.

SEARCH_EXPR:    in a set iteration, yields each member of the set
                in some implementation dependend order.
                Extended Pascal (this is not yet implemented in gpc).

Rest of the operands result in boolean values.

=, <>           Equality comparisons

<=              LE_EXPR
                SetA <= SetB denotes the inclusion of SetA in SetB

>=              Implemented with LE_EXPR, like above
                SetA >= SetB denotes the inclusion of SetB in SetA

Go to the first, previous, next, last section, table of contents.