Path: 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: 
Date: 15 Jan 91 15:04:25 GMT
References: 
Sender: daemon@ucbvax.BERKELEY.EDU
Reply-To: Modula2 List 
Organization: The Internet
Lines: 31

On Tue, 15 Jan 91 04:36:11 GMT  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