comp.lang.ada
 help / color / mirror / Atom feed
From: Vinzent Hoefler <ada.rocks@jlfencey.com>
Subject: Re: [Spark] Arrays of Strings
Date: Wed, 09 Apr 2003 14:41:02 -0400
Date: 2003-04-09T14:41:02-04:00	[thread overview]
Message-ID: <b71pg0$aain3$1@ID-175126.news.dfncis.de> (raw)
In-Reply-To: 1049908902.143649@master.nyc.kbcfp.com

Hyman Rosen <hyrosen@mail.com> wrote:

>Vinzent Hoefler wrote:
>> The reliability is not in the subset like in MISRA-C, it is in the
>> static analysis. I think, it is called *proof*.
>
>I am starting to be a little disturbed now that I've thought about
>this a little more.

Thinking never hurted anybody. :)

>You seem to be telling me that it's OK to have
>variables declared loosely (Natural instead of the array range type)

Yes, I noticed that in Lutz' code later myself. My quoting was a
little bit misleading (even to myself), I guess.

But still it had nothing to do with your comments about "subset", I
was thinking more about the "character indexing stuff" you complained
about.

>becuase a program verifier will notice problems regardless.

Although this *might* be true sometimes, it was definitely not my
intention to say such stupid thing.

But sometimes a restricted subset might lead to code that could be
expressed (far) more easily with the original superset of the
language. That was what I was trying to say.

>I've been told here frequently
>that Ada's style lends itself to avoiding buffer overflows because
>you declare variables that loop over array ranges, and so there is
>never an opportunity to go off the end.

This doesn't apply to the code here, because the assignments are quite
static anyway, but generally I'd say, yes, this is right.

Call it experience. :-)

>I find that the posted code looks very much like something you would
>see in C (except for that awful buffer setting stuff).

Well, it's still code interfacing to a C-kernel. ;->

And it was called test_...


Vinzent.

-- 
Parents strongly cautioned  --  this  posting  is  intended for mature
audiences  over  18.  It  may  contain some material that many parents
would not find suitable for children and may include intense violence,
sexual situations, coarse language and suggestive dialogue.



  reply	other threads:[~2003-04-09 18:41 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-08 12:02 [Spark] Arrays of Strings Lutz Donnerhacke
2003-04-08 18:08 ` Martin Krischik
2003-04-09  9:23   ` Lutz Donnerhacke
2003-04-09 12:38     ` Hyman Rosen
2003-04-09 12:47       ` Vinzent Hoefler
2003-04-09 14:27         ` Hyman Rosen
2003-04-09 15:13           ` Vinzent Hoefler
2003-04-09 17:21         ` Hyman Rosen
2003-04-09 18:41           ` Vinzent Hoefler [this message]
2003-04-09 21:04           ` Randy Brukardt
2003-04-10 23:21           ` John R. Strohm
2003-04-11 12:19             ` Hyman Rosen
2003-04-11 13:14               ` John R. Strohm
2003-04-09  7:50 ` Eric G. Miller
2003-04-09  8:10   ` Lutz Donnerhacke
2003-04-09 18:23   ` Matthew Heaney
2003-04-09 17:42 ` Matthew Heaney
2003-04-09 21:06   ` Randy Brukardt
2003-04-10  8:23   ` Lutz Donnerhacke
2003-04-10 14:09     ` Matthew Heaney
2003-04-10 14:48       ` Hyman Rosen
2003-04-11  6:20         ` Chad R. Meiners
2003-04-11 12:31           ` Hyman Rosen
2003-04-11 18:27             ` Chad R. Meiners
2003-04-11  7:35         ` Phil Thornley
2003-04-11 12:05           ` Marin David Condic
2003-04-11 13:19             ` John R. Strohm
2003-04-12 23:09               ` Robert A Duff
2003-04-11 18:47             ` Chad R. Meiners
2003-04-12 23:51         ` Robert A Duff
2003-04-13  5:47           ` Hyman Rosen
2003-04-14  8:05             ` Lutz Donnerhacke
2003-04-10 15:02       ` Lutz Donnerhacke
2003-04-10 15:50         ` Hyman Rosen
2003-04-10 18:32           ` Randy Brukardt
2003-04-11  6:28         ` Chad R. Meiners
2003-04-11  8:11           ` Lutz Donnerhacke
2003-04-11 12:32 ` Rod Chapman
2003-04-11 14:50   ` Peter Amey
2003-04-11 18:41   ` Matthew Heaney
2003-04-11 21:25     ` Chad R. Meiners
2003-04-12 10:08     ` Peter Amey
replies disabled

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