comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <mcondic.auntie.spam@acm.org>
Subject: Re: Unchecked_Deallocation subtleties
Date: Thu, 10 Apr 2003 08:02:49 -0400
Date: 2003-04-10T12:03:09+00:00	[thread overview]
Message-ID: <b73mht$g7t$1@slb6.atl.mindspring.net> (raw)
In-Reply-To: 873ckr979l.fsf@inf.enst.fr

Samuel Tardieu <sam@rfc1149.net> wrote in message
news:873ckr979l.fsf@inf.enst.fr...
>
> I agree, but the RM deliberately ignores such a factor. Otherwise, no
> function would ever be Pure in the RM sense, as the omission of the
> call would never yield the same "result".
>
Obviously, as a language standard, it must for the most part ignore time. It
can't account for how something gets implemented, so trying to address time
becomes problematic. In probably 99.9% of the applications, time doesn't
matter, so if a function takes more or less time dealing with the
off-nominal case, nobody much cares. But put that call in a selective wait
with a delay alternative and suddenly you might see different program
behavior if the off-nominal case changes the timing.

I just brought it up as a reminder that "no effect" from the ARM perspective
is not equivalent to "no observable difference in the real world". The ARM
concern is that there be no semantic effect. A call to a deallocate routine
with a null pointer might cause the rectal extraction of several flying
monkeys, but so long as the program continues to compute what the ARM
expects, its happy. :-)

MDC
--
======================================================================
Marin David Condic
I work for: http://www.belcan.com/
My project is: http://www.jsf.mil/

Send Replies To: m c o n d i c @ a c m . o r g

    "Going cold turkey isn't as delicious as it sounds."
        -- H. Simpson
======================================================================






  reply	other threads:[~2003-04-10 12:02 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-09  9:10 Unchecked_Deallocation subtleties Piotr Zgorecki
2003-04-09  9:46 ` Samuel Tardieu
2003-04-09 12:19   ` Marin David Condic
2003-04-09 12:37     ` Samuel Tardieu
2003-04-10 12:02       ` Marin David Condic [this message]
2003-04-09 16:54     ` Warren W. Gay VE3WWG
2003-04-09 20:19       ` Nick Roberts
2003-04-09 21:39         ` Samuel Tardieu
2003-04-10 11:37           ` Nick Roberts
2003-04-10 14:39             ` Robert Spooner
2003-04-10 16:39             ` Warren W. Gay VE3WWG
2003-04-09 19:50 ` Nick Roberts
2003-04-10 15:04   ` Nick Roberts
2003-04-10 16:40     ` chris.danx
2003-04-14 23:42   ` Keith Thompson
2003-04-15  1:54     ` Nick Roberts
2003-04-15 12:00     ` Larry Kilgallen
2003-04-15 12:13       ` Jacob Sparre Andersen
2003-04-19  8:57         ` AG
2003-04-09 21:23 ` Randy Brukardt
2003-04-10 11:49   ` Nick Roberts
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox