Translating Modula2 into D: variant records, pointer
BLS
Killing_Zoe at web.de
Wed Jan 10 09:18:09 PST 2007
Jarrett Billingsley schrieb:
> "BLS" <Killing_Zoe at web.de> wrote in message
> news:eo0ih9$2odp$1 at digitaldaemon.com...
>
>>Many thanks, this info will give me a Go!
>>
>> I guess in Modula2, if 'terminal' is true, you
>>
>>>can only access tsym, and otherwise you can only access nSym?
>>
>>No. Nothing prevents you from making mistake.(In fact variant records are
>>a pretty nice source for bugs) Would be nice if D can do this better!
>>Bjoern
>
>
> Hmm.. what's that 'terminal' member for then, anyway?
>
>
The official language definition (Quote N. Wirth/my interpretation) says
that Mr. Compiler has to take care about it. The real world
implementation is just an other story.
Bjoern, and Thanks again man!
More information about the Digitalmars-d-learn
mailing list