[fpc-pascal] Case in Record

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Oct 7 10:29:23 CEST 2009


On 07 Oct 2009, at 10:18, Florian Klaempfl wrote:

> Vincent Snijders schrieb:
>> Jonas Maebe schreef:
>>>
>>> On 07 Oct 2009, at 09:19, Vincent Snijders wrote:
>>>
>>>> IIRC, there is a difference. With the second declaration the  
>>>> compiler
>>>> can add a run-time check that the correct memebrs are accessed  
>>>> based
>>>> on the value of X.
>>>>
>>>> Unfortunately, I cannot find the compiler switch.
>>>
>>> FPC has no support for this.
>>
>> Then I did not remember correctly: I thought you implemented it. :-)
>
> Actually I though too that Jonas implemented this once :)

I once started working on it, but never finished it (and the  
variantcase.patch file in my compiler dir is extremely small, so I  
never got very far either).


Jonas



More information about the fpc-pascal mailing list