Article View: comp.lang.modula2
Article #3392Re: SIZE function for FST (DOS) compiler?
From: Peter Moylan
Date: Mon, 18 Mar 1996 21:55
Date: Mon, 18 Mar 1996 21:55
21 lines
1556 bytes
1556 bytes
Ronald Snelgrove (ronald@newton.physics.BrockU.CA) wrote:
>To anyone using the Fitted Software Modula-2 compiler for DOS:
> I have already looked through all of the definition modules for this and
>couldn't find it, so I'm hoping that I have just missed it. I was wondering
>if there was a function that when given a data type, would return the number
>of bytes required to store that type, ie SIZE(INTEGER) would return 2. This
>would be the equivalent to the TSIZE function on the Macintosh MetroWerks
>compiler, if that helps anyone.
I haven't checked the FST features lately; but both SIZE(variable)
and TSIZE(type) are in the language. You can import them from
SYSTEM. If these are missing, it's a compiler bug.
You won't find them in a definition module, though.
They're built-in functions, not library functions.
--
Peter Moylan peter@ee.newcastle.edu.au
http://www.eng.newcastle.edu.au/ee/Moylan.html
OS/2 freeware list at
http://www.eng.newcastle.edu.au/ee/Moylan/os2/os2info.html
Technical Details
Message-ID:
<4ikm4t$nqc@seagoon.newcastle.edu.au>Path:
arc1-ca.pugleaf.net!fourier.newcastle.edu.au!peterReferences:
<1996Mar17.041332.11054@spartan.ac.BrockU.CA>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!fourier.newcastle.edu.au!peter From: peter@fourier.newcastle.edu.au (Peter Moylan) Newsgroups: comp.lang.modula2 Subject: Re: SIZE function for FST (DOS) compiler? Date: 18 Mar 1996 21:55:40 GMT Organization: The University of Newcastle Message-ID: <4ikm4t$nqc@seagoon.newcastle.edu.au> References: <1996Mar17.041332.11054@spartan.ac.BrockU.CA> Reply-To: peter@tesla.newcastle.edu.au NNTP-Posting-Host: fourier.newcastle.edu.au X-Newsreader: TIN [version 1.2 PL2]