[net.lang.mod2] nil pointer dereferencing

g-frank@gumby.UUCP (02/12/85)

   Since I don't remember what newsgroup this discussion was in, I'll
try these two . . .

   The Logitech Modula-2/86 compiler for the 8086, as of version 1.1,
has an address constant called NIL which produces the value FFFF:FFFF
(segment:offset).  Since this is not a very valid address on the 
processor (it wraps around into lower memory), no addressability is
lost by this convention.

   Actually, this was in v1.0.  What is new in 1.1 is that, by default,
the compiler generates code to check for a NIL dereferencing operation
before it takes place.  This checking may be turned off by a compile-
time switch.


-- 
      Dan Frank

	  Q: What's the difference between an Apple MacIntosh
	     and an Etch-A-Sketch?

	  A: You don't have to shake the Mac to clear the screen.

tamayo@pokey.UUCP (02/27/85)

> 
>    Since I don't remember what newsgroup this discussion was in, I'll
> try these two . . .
> 
>    The Logitech Modula-2/86 compiler for the 8086, as of version 1.1,
> has an address constant called NIL which produces the value FFFF:FFFF
> (segment:offset).  Since this is not a very valid address on the 
> processor (it wraps around into lower memory), no addressability is
> lost by this convention.
> 
>    Actually, this was in v1.0.  What is new in 1.1 is that, by default,
> the compiler generates code to check for a NIL dereferencing operation
> before it takes place.  This checking may be turned off by a compile-

> 
> 
> -- 
>       Dan Frank
> 
> 	  Q: What's the difference between an Apple MacIntosh
> 	     and an Etch-A-Sketch?
> 
> 	  A: You don't have to shake the Mac to clear the screen.

*** REPLACE THIS LINE WITH YOUR MESSAGE ***