On Oct 8, 2009, at 9:12 AM, Jürgen Hestermann wrote:
And I don't know any other Pascal Compiler who does any checks in
this direction. Do some?
I don't know, but ADA reportedly does.
I don't know the differences to Pascal. Does it have the same syntax
for variant records?
FWIW, here is a link to the BNF of the Ada Programming Language:
http://www.seas.gwu.edu/~adagroup/ada95-syntax/
Jerry
Such a feature definitely seems useful to me.
Of course it would be. But how should it work? Setting the tag
variable when assigning a value and raising an error when reading
with different variant? Then what if the tag variable is changed
directly? Or should it be readonly (which would make sense IMHO).
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal