From: Wayne Magor <none@nowhere.com>
Subject: Re: Does a null pointer always raise Constraint_Error?
Date: Tue, 12 Dec 2000 10:23:57 -0600
Date: 2000-12-12T10:23:57-06:00 [thread overview]
Message-ID: <3A36511D.973D82BD@nowhere.com> (raw)
In-Reply-To: 90ukfm$c4p$1@nnrp1.deja.com
Mike Silva wrote:
> How does one choose the null value? I understand that the null value
> need not be zero, but I always thought it was fixed in a given
> compiler, or perhaps CPU architecture.
I remember with one Ada compiler I wanted to make null to be a pointer to a
zero-length segment so
the null check would be unnecessary (the hardware would do it for you). I
seem to remember there was
a problem with this. Either the hardware guys never considered that you
might want a zero-length segment
or we wanted to be compatible with the null from C (I think it was the h/w
problem).
In any case, for those h/w types that might read this... please allow for
zero-length segments! I believe this
is the "best" implementation for null.
Wayne.
next parent reply other threads:[~2000-12-12 16:23 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.10.10011301306120.793-100000@lexis.di.fct.unl.pt>
[not found] ` <tgzoihpon4.fsf@mercury.rus.uni-stuttgart.de>
[not found] ` <9074fi$93b$1@nnrp1.deja.com>
[not found] ` <3A3253B1.AD8F32CF@ebox.tninet.se>
[not found] ` <90u1vi$uah$1@nnrp1.deja.com>
[not found] ` <90ukfm$c4p$1@nnrp1.deja.com>
2000-12-12 16:23 ` Wayne Magor [this message]
2000-12-12 20:27 ` Does a null pointer always raise Constraint_Error? Keith Thompson
2000-12-13 0:46 ` Robert Dewar
2000-12-13 8:58 ` Lutz Donnerhacke
2000-12-13 13:56 ` Ken Garlington
2000-12-13 14:25 ` Lutz Donnerhacke
2000-12-13 14:58 ` Florian Weimer
2000-12-13 15:17 ` Lutz Donnerhacke
2000-12-13 15:40 ` Robert Dewar
2000-12-13 20:07 ` Florian Weimer
2000-12-14 13:08 ` Robert Dewar
2000-12-14 14:29 ` Ken Garlington
2000-12-15 1:45 ` Robert Dewar
2000-12-13 15:37 ` Robert Dewar
2000-12-12 20:31 ` Keith Thompson
2000-12-13 19:58 ` Florian Weimer
2000-12-13 0:43 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox