Hallo Martin,

Du schriebst am Tue, 6 Jun 2017 13:12:33 +0200:

> Because case in records is crap. It misleadingly pretends that there is
> access type control by the tags and it is clumsy.

No, that's not the case generally. It is so for the Borland dialects, but
not for others. There _are_ Pascal dialects that _do_ make use of the tag
and even change the interpretation of the type accordingly, or that use
separate storage areas for the tagged variants. The problem with this
construct is that it was never clearly specified by the originators (incl.
Prof. Wirth himself) how it was meant to be used and thus how it should be
implemented.
BTW, fpc does indeed store the tag value, if an identifier was specified
along with the tag type for the record declaration. This might be useful at
times to keep track of the data stored in the variant area.

-- 
-- 
(Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung
nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem)
-----------------------------------------------------------
Mit freundlichen Grüßen, S. Schicktanz
-----------------------------------------------------------



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to