🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #3393

Re: constant tables?

#3393
From: John Gough
Date: Tue, 19 Mar 1996 04:49
22 lines
1280 bytes
Bill Seurer wrote:
> 
> Constant tables were non-standard in earlier versions of Modula-2.  Some
> allowed it (like TopSpeed) anyway.
> 
> The new standard allows it but I don't know of any compilers.
> --
> 
> - Bill Seurer     ID Tools and Compiler Development      IBM Rochester, MN
>   Business: BillSeurer@vnet.ibm.com               Home: BillSeurer@aol.com

Sure, all the native code versions of gpm allow this.
Furthermore, in code (as opposed to constant declarations)
you can write

	blah := MyType{exp1, exp2, ..., expN};

where exp1, exp2 are any expressions.  The compiler extracts
the constant parts at compile time, and fills in the variable
parts at runtime.

John Gough
Technical Details
Message-ID: <314E3CE9.41C6@dstc.qut.edu.au>
Path: arc1-ca.pugleaf.net!azure.dstc.edu.au!usenet
References: <erico-1403961506370001@infinitehell.cnmat.berkeley.edu> <4ik006$16qr@locutus.rchland.ibm.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!azure.dstc.edu.au!usenet
From: John Gough <gough@dstc.qut.edu.au>
Newsgroups: comp.lang.modula2
Subject: Re: constant tables?
Date: Tue, 19 Mar 1996 14:49:45 +1000
Organization: Distributed Systems Technology Centr
Message-ID: <314E3CE9.41C6@dstc.qut.edu.au>
References: <erico-1403961506370001@infinitehell.cnmat.berkeley.edu> <4ik006$16qr@locutus.rchland.ibm.com>
NNTP-Posting-Host: typhoon.dstc.qut.edu.au
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.01 (X11; I; OSF1 V3.2 alpha)