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?

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

Reply via email to