🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #4629

Re: What is the use of tag fields and case labels in records ?

#4629
From: Mark Rozhin
Date: Fri, 03 Feb 1989 21:31
9 lines
799 bytes
one compiler (pascal, actually) supports an option that will make the
compiler emit checking code to be executed at run-time to enure that you
access the right variant. this can only be done of the tag is there, as
opposed to just the tag type.

notice that modula-3 solved the entire problem of variants and tags by
removing them from the language.

mr
Technical Details
Message-ID: <940001@hpcllmr.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!nrl-cmf!ukma!gatech!purdue!decwrl!hplabs!hpda!hpcuhb!hpcllla!hpclisp!hpcllmr!mark
References: <724@htsa.uucp>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!nrl-cmf!ukma!gatech!purdue!decwrl!hplabs!hpda!hpcuhb!hpcllla!hpclisp!hpcllmr!mark
From: mark@hpcllmr.HP.COM (Mark Rozhin)
Newsgroups: comp.lang.modula2
Subject: Re: What is the use of tag fields and case labels in records ?
Message-ID: <940001@hpcllmr.HP.COM>
Date: 3 Feb 89 21:31:09 GMT
References: <724@htsa.uucp>
Organization: Hewlett-Packard Calif. Language Lab
Lines: 9