[fpc-pascal] Case in Record
Jerry
lanceboyle at qwest.net
Fri Oct 9 09:07:58 CEST 2009
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).
More information about the fpc-pascal
mailing list