comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Suggestion for gnatstub
Date: Sun, 10 Nov 2002 20:31:52 GMT
Date: 2002-11-10T20:31:52+00:00	[thread overview]
Message-ID: <wcc65v5maiv.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: aqm02n$vqk$1@slb0.atl.mindspring.net

"Marin David Condic" <mcondic.auntie.spam@acm.org> writes:

> In the world I live in, it would not be possible to leave stubs in a
> delivered system, so I'm not worried about that. Ultimately, if you do worry
> about such things, there's nothing to stop hand-generated stubs or bad
> subroutines or any other sort of trash from getting through, so why worry
> about a machine generated stub? And besides, what about procedures with only
> a "null ;" statement? That's sort of an envisioned use - test stubs - so
> maybe they should have been disallowed by the language?

To me, "null;" means "this procedure does nothing".  You're suggesting
to overload it to also mean "I haven't gotten around to writing this
procedure yet".

> As to the value? I've often had a higher level procedure where I want to
> check the logical flow or correctness in some "grand overview" sense without
> worrying so much that it got the right answer to anything.

I don't normally use that style, because when the thing crashes, you
have to expend energy debugging whether it's a "real" bug (in the grand
overview code) versus a "stub" that is generating bogus data, and then
the grand code is tripping over it.

> As a switch selectable choice, if you don't consider such a thing to be
> "safe" you don't have to use it. For those who would find it useful and
> aren't concerned about potential safety issues, well, there it is!

Hmm.  If I'm *using* the program *you* write, I just hope the reason you
"aren't concerned about potential safety issues" is that you've solved
them some other way.  Too many programmers "aren't concerned ..." due to
sloppiness.  ;-)

Having said all that, I admit none of this is a big deal.

- Bob



  reply	other threads:[~2002-11-10 20:31 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-08 11:14 Suggestion for gnatstub Victor Porton
2002-11-08 12:56 ` Marc A. Criley
2002-11-08 13:23   ` Marin David Condic
2002-11-08 21:09     ` chris.danx
2002-11-15 17:08       ` Wes Groleau
2002-11-15 17:35         ` Stephen Leake
2002-11-16 14:36         ` Marin David Condic
2002-11-09 14:15     ` Simon Wright
2002-11-09 14:50       ` Marin David Condic
2002-11-09 20:05         ` Simon Wright
2002-11-10 15:58           ` Marin David Condic
2002-11-10 20:31             ` Robert A Duff [this message]
2002-11-11 13:46               ` Marin David Condic
2002-11-11 15:31                 ` Robert A Duff
2002-11-11 20:32                   ` Randy Brukardt
2002-11-11  6:31             ` Simon Wright
2002-11-09 15:44       ` Robert A Duff
2002-11-09 20:08         ` Simon Wright
2002-11-09 21:56           ` Robert A Duff
2002-11-10  8:42             ` Pascal Obry
2002-11-10 12:20               ` Simon Wright
2002-11-10 16:04               ` Marin David Condic
2002-11-14 20:10               ` Robert I. Eachus
replies disabled

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