Re: language design implications for variant records in a pascal-like language

Hans-Peter Diettrich <DrDiettrich1@aol.com>
Sat, 25 Dec 2010 16:19:02 +0100

          From comp.compilers

Related articles
language design implications for variant records in a pascal-like lang noitalmost@cox.net (noitalmost) (2010-12-22)
Re: language design implications for variant records in a pascal-like gneuner2@comcast.net (George Neuner) (2010-12-23)
Re: language design implications for variant records in a pascal-like danielzazula@gmail.com (Daniel Zazula) (2010-12-24)
Re: language design implications for variant records in a pascal-like bobduff@shell01.TheWorld.com (Robert A Duff) (2010-12-24)
Re: language design implications for variant records in a pascal-like mailbox@dmitry-kazakov.de (Dmitry A. Kazakov) (2010-12-25)
Re: language design implications for variant records in a pascal-like DrDiettrich1@aol.com (Hans-Peter Diettrich) (2010-12-25)
Re: language design implications for variant records in a pascal-like gene.ressler@gmail.com (Gene) (2010-12-27)
Re: language design implications for variant records in a pascal-like bobduff@shell01.TheWorld.com (Robert A Duff) (2010-12-27)
Re: language design implications for variant records in a pascal-like noitalmost@cox.net (noitalmost) (2010-12-27)
Re: language design implications for variant records in a pascal-like cr88192@hotmail.com (BGB) (2010-12-27)
Re: language design implications for variant records in a pascal-like bobduff@shell01.TheWorld.com (Robert A Duff) (2010-12-28)
Re: language design implications for variant records in a pascal-like mailbox@dmitry-kazakov.de (Dmitry A. Kazakov) (2010-12-29)
[50 later articles]
| List of all articles for this month |
From: Hans-Peter Diettrich <DrDiettrich1@aol.com>
Newsgroups: comp.compilers
Date: Sat, 25 Dec 2010 16:19:02 +0100
Organization: Compilers Central
References: 10-12-040
Keywords: storage, design
Posted-Date: 27 Dec 2010 10:59:24 EST

noitalmost schrieb:


> I'm trying to keep my language (and compiler) fairly small, is there a good
> case for variant records, or could everything be handled through classes
> without too much inconvenience to the user programmer?


Variant records can simplify memory management of polymorphic data,
eliminating additional class instances (=heap objects) when embedded in
other objects, and can reduce the number of new/additional objects
during type conversions. External libraries (databases, COM) can use
polymorphic records as arguments, so that such a feature may be a MUST
for using such APIs. Otherwise every programmer should be happy with
more type-safe polymorphic classes.


DoDi



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.