Article View: comp.lang.modula2
Article #1694Re: Standard Modula2
From: Greg Granger
Date: Tue, 15 Jan 1991 15:04
Date: Tue, 15 Jan 1991 15:04
31 lines
2028 bytes
2028 bytes
On Tue, 15 Jan 91 04:36:11 GMT <editor%ucf1vm.BITNET@LILAC.BERKELEY.EDU> said:
> I am tring to resolve two questions that came up durring a Modula2
>symantics lecture. Is the Available() procedure in Storage "standard"
While Available(), is in PIM2 (3th ed) it is stated:
These modules are presented here in the form of definition
modules. We emphazise that they are NOT part of the definition
of the LANGUAGE Modula-2, and it is recognized that different
implementations may be either vary in details or in the
selection of modules provided.
This BTW includes the following modules: Terminal, FileSystem,
InOut, RealInOut, Windows, TextWindows, GraphicWindows, CursorMouse,
Menu, Storage and MathLib0.
>(according to Whirth)? Also if a pointer is unset will SIZE(ptr) return the
>size of what ptr points to?
>...
> Dean Grandquist
If a pointer is "unset" (by that I assume you mean DEALLOCATEd), it
doesn't point to anything, therefore whatever SIZE might return would
have no meaning. You can of course call SIZE on the type of the
pointer and get the size that it would require. As far as I could
tell (and I didn't look that close) SIZE is not defined in the case
of a pointer being NIL or undefined, although it might be reasonable
to assume it would return 0 in the case of the former; what it
returns in the case of the former is entirely up to the compiler
writer and how the heap was implemented.
Greg
Technical Details
Message-ID:
<INFO-M2%91011516471353@UCF1VM.BITNET>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!apple!agate!ucbvax!VTVM1.BITNET!GRANGERGReferences:
<editor%ucf1vm.BITNET@LILAC.BERKELEY.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!apple!agate!ucbvax!VTVM1.BITNET!GRANGERG From: GRANGERG@VTVM1.BITNET (Greg Granger) Newsgroups: comp.lang.modula2 Subject: Re: Standard Modula2 Message-ID: <INFO-M2%91011516471353@UCF1VM.BITNET> Date: 15 Jan 91 15:04:25 GMT References: <editor%ucf1vm.BITNET@LILAC.BERKELEY.EDU> Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: Modula2 List <INFO-M2%UCF1VM.BITNET@ucf1vm.cc.ucf.edu> Organization: The Internet Lines: 31