comp.lang.ada
 help / color / mirror / Atom feed
From: merlin@annwfn.com (Fred McCall)
Subject: Re: Ada ad in Embedded Systems Programming stinks
Date: Sat, 17 Sep 1994 08:07:25 -0400
Date: 1994-09-17T08:07:25-04:00	[thread overview]
Message-ID: <85B31BE3FA6@annwfn.com> (raw)
In-Reply-To: 353tqe$7pa@goanna.cs.rmit.oz.au

In <353tqe$7pa@goanna.cs.rmit.oz.au> ok@goanna.cs.rmit.oz.au Richard A. O'Keefe writes:

>I think you have misunderstood the reason why it is essential to keep
>checking the manual.  I personally am sick and tired of C code "that
>uses constructs that anybody can understand" but doesn't work.  Example:
>someone else's code I'm _still_ trying to fix after a couple of weeks
>(ok, I'm not doing this full time) which, amongst other things, assumes
>that (a) pointers and 'int's are the same size and (b) casting a pointer
>to an int preserves all the bits.  

Obviously written by someone who has been ignoring the advice of people
who know C (the phrase "All the world is not a VAX" emanating from the
direction of Toronto comes to mind).  Note that someone who does this
isn't going to be helped by a language manual.  They're going to need to
know a bit more about their environment -- which to my mind is
information they ought to know, anyway.

>The point of checking the manual is not to become intimate with all kinds
>of super-whizzy features that demonstrate your wizard-hood, but to learn
>what kinds of things to _avoid_. 

Or better yet, to learn what 'misfeatures' to look for in other peoples'
code.  Personally, I learned more C by reading comp.lang.c than I got
from the books.  Would that newsgroups were still as informative as they
used to be.

Howevver, I think it is a valid issue that Ada programmers typically
NEED to look in the language reference more often.  This is an expected
result of the language being 'pickier' about what it will let you do.

--
"Insisting on perfect safety is for people who don't have the balls to live
 in the real world."   -- Mary Shafer, NASA Ames Dryden
---------------------------------------------------------------------------
merlin@annwfn.com -- I don't speak for others and they don't speak for me.



  reply	other threads:[~1994-09-17 12:07 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CvFI4J.D5M@world.std.com>
     [not found] ` <34ecqc$b5q@source.asset.com>
     [not found]   ` <34g5v3INN6q2@phage.cshl.org>
1994-09-06 13:46     ` Ada ad in Embedded Systems Programming stinks david.c.willett
     [not found]     ` <EACHUS.94Sep6094018@spectre.mitre.org>
1994-09-08  7:04       ` Dag Bruck
1994-09-08  9:52         ` Robert I. Eachus
1994-09-08 17:12           ` Dag Bruck
1994-09-08 17:28             ` Robert I. Eachus
1994-09-22  8:51         ` Brendan WALKER
1994-09-07 22:44   ` John Goodsen
1994-09-08  6:32     ` Keith Thompson @pulsar
     [not found] ` <1994Sep1.084046.21595@sei.cmu.edu>
     [not found]   ` <344u9q$di5@gnat.cs.nyu.edu>
     [not found]     ` <347idh$15ss@watnews1.watson.ibm.com>
     [not found]       ` <1994Sep4.092729.21408@lmpsbbs.comm.mot.com>
1994-09-07 22:46         ` John Goodsen
1994-09-08  6:47           ` Keith Thompson @pulsar
1994-09-08  8:52             ` David Emery
1994-09-11  3:41       ` Michael M. Bishop
1994-09-11 12:20         ` Robert Dewar
1994-09-11 13:29           ` Robert Dewar
1994-09-12 14:03             ` Norman H. Cohen
1994-09-11 21:48           ` Erik Naggum
1994-09-11 23:47             ` Robert Dewar
1994-09-12  6:28               ` Dag Bruck
1994-09-12 12:22                 ` David Weller
1994-09-12 20:03               ` Erik Naggum
1994-09-12 19:16             ` Maarten Landzaat
1994-09-13 10:10               ` Richard A. O'Keefe
1994-09-17 12:07                 ` Fred McCall [this message]
1994-09-12 20:49         ` Mitch Gart
1994-10-13 10:51 Bob Wells #402
replies disabled

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