comp.lang.ada
 help / color / mirror / Atom feed
From: "Robert I. Eachus" <rieachus@comcast.net>
Subject: Re: GNAT parameter passing, C-style?
Date: Tue, 06 Jan 2004 18:45:28 -0500
Date: 2004-01-06T18:45:28-05:00	[thread overview]
Message-ID: <bZKdnYvqTpAE1WaiRVn-gg@comcast.com> (raw)
In-Reply-To: <lny8skol12.fsf@nuthaus.mib.org>

Keith Thompson wrote:

> For Ada, there's not much difference *to the user* between a bounded
> error and erroneous execution; they're both to be avoided.  It's an
> important distinction to implementers, though.

I know that.  I was just saying that in cases where an Ada 83 erroneous 
execution has been changed to a bounded error, I have not--and I think 
that any sane programmer would not--say "That's all right then, as long 
as the behaviour is bounded, I don't have to worry."  The same thing 
holds for implementation dependent as well.  An implementor is going to 
have to document what happens, but whether something is implementation 
dependent, a bounded error, or results in erroneous execution, the user 
sees it all the same way.  "Don't do this if you want to write 
trustworthy and portable programs."

And of course, that is the real distinction between C and Ada.  I can 
write portable C, but it is significantly harder than just programming 
in C.  In Ada I don't have to work hard to write portable code.  In 
fact, the only times I use implementation dependent code of any kind is 
when I am testing a compiler, or writing something that really is 
implementation dependent, such as an interface to a hardware register. 
Even there, only the register location (and layout) is implementation 
dependent.  The rest of the code doesn't have to be.

-- 
                                           Robert I. Eachus

"The war on terror is a different kind of war, waged capture by capture, 
cell by cell, and victory by victory. Our security is assured by our 
perseverance and by our sure belief in the success of liberty." -- 
George W. Bush




  reply	other threads:[~2004-01-06 23:45 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-26 10:37 GNAT parameter passing, C-style? Luke A. Guest
2003-12-26 14:20 ` Marin David Condic
2003-12-26 14:51   ` Hyman Rosen
2003-12-26 15:07     ` Marin David Condic
2003-12-26 15:39       ` Luke A. Guest
2003-12-26 17:03         ` Hyman Rosen
2003-12-26 17:08           ` Luke A. Guest
2003-12-26 17:27             ` Luke A. Guest
2003-12-26 18:21               ` Frank J. Lhota
2003-12-26 19:06                 ` Frank J. Lhota
2003-12-31 10:23                 ` Keith Thompson
2003-12-31 14:45                   ` Frank J. Lhota
2003-12-31 15:05                     ` Hyman Rosen
2003-12-31 16:30                       ` Frank J. Lhota
2003-12-31 17:24                         ` Hyman Rosen
2003-12-31 19:05                           ` Frank J. Lhota
2003-12-31 19:38                             ` Hyman Rosen
2003-12-31 20:47                               ` Frank J. Lhota
2003-12-31 21:35                                 ` Hyman Rosen
2004-01-01  2:50                                   ` Frank J. Lhota
2004-01-01  5:20                                     ` Luke A. Guest
2004-01-01 16:06                                       ` Hyman Rosen
2004-01-01 16:32                                         ` Frank J. Lhota
2004-01-01 16:43                                           ` Hyman Rosen
2004-01-02  0:24                                             ` Frank J. Lhota
2004-01-02  4:09                                               ` Hyman Rosen
2004-01-02 13:29                                                 ` Frank J. Lhota
2004-01-01  5:17                                   ` Luke A. Guest
2004-01-01  5:09                                 ` Luke A. Guest
2004-01-02  1:17                                   ` tmoran
2004-01-01 17:18                                 ` Jano
2004-01-02  0:25                                   ` Frank J. Lhota
2004-01-07  6:37                         ` Dave Thompson
2004-01-01  3:38                       ` Marin David Condic
2004-01-01  5:28                         ` Luke A. Guest
2004-01-01 14:17                           ` Marin David Condic
2004-01-01 16:20                             ` Jeff C,
2004-01-02 13:47                               ` Marin David Condic
2004-01-05 21:06                     ` Keith Thompson
2004-01-06  3:42                       ` Robert I. Eachus
2004-01-06 20:54                         ` Keith Thompson
2004-01-06 23:45                           ` Robert I. Eachus [this message]
2004-01-06 13:46                       ` Frank J. Lhota
2003-12-27 14:22             ` Marin David Condic
2003-12-26 17:10         ` Martin Krischik
2003-12-26 19:04           ` Frank J. Lhota
2003-12-26 18:01   ` Georg Bauhaus
replies disabled

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