From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Suggestion for gnatstub
Date: Mon, 11 Nov 2002 15:31:10 GMT
Date: 2002-11-11T15:31:10+00:00 [thread overview]
Message-ID: <wcck7jkunr5.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: aqocbn$8vr$1@slb4.atl.mindspring.net
"Marin David Condic" <mcondic.auntie.spam@acm.org> writes:
> Robert A Duff <bobduff@shell01.TheWorld.com> wrote in message
> news:wcc65v5maiv.fsf@shell01.TheWorld.com...
> >
> > 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".
> >
> I can't think of too many other reasons to write a null procedure. If it was
> going to stay null forever, then why have it at all. Seems like the
> mechanism is there so you can have a procedure waiting for the programmer to
> find the elusive Round Tuit. :-)
I can't think of "too many", either, but I can think of some. Just the
other day I wrote a generic procedure to walk a tree. The generic takes
two generic formal procedures, Pre_Action and Post_Action, which are
called during the tree at the points you would guess. They have
defaults, "is Do_Nothing", so you can specify one or the other.
Guess what procedure Do_Nothing looks like. ;-)
> Well, everybody has different styles and sometimes its a matter of what is
> appropriate for the application at hand. Sometimes writing a bunch of test
> drivers is the way to go. Sometimes maybe one should just fill in all the
> code and get staarted testing the thing in one big gigantic thrust. But I
> think you can see that lots of things get built in iterative builds where
> some portion of the system remains as stubs to be filled in at a later time.
Just to be clear on what I was saying about my style (which I agree is
not everybody's style): I often test and debug one procedure in a
package before writing some other procedure in the same package. For
that, I'd like the editor to insert compile-able but not runnable code.
But I don't usually debug one procedure while the procedures it calls
have not yet been written.
- Bob
next prev parent reply other threads:[~2002-11-11 15: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
2002-11-11 13:46 ` Marin David Condic
2002-11-11 15:31 ` Robert A Duff [this message]
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