How is a discriminated union implement in Pascal?
Both discriminated and non-discriminated unions are used e.g.
type intreal = record tag : Boolean of
true : (blint : integer);
false : (blreal : real);
end;
type intreal = record tag : Boolean of
true : (blint : integer);
false : (blreal : real);
end;
How is a discriminated union implement in Pascal?
Reviewed by MCH
on
March 01, 2014
Rating:
No comments: