comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Suggestion for gnatstub
Date: Mon, 11 Nov 2002 14:32:35 -0600
Date: 2002-11-11T14:32:35-06:00	[thread overview]
Message-ID: <ut04u211h9si58@corp.supernews.com> (raw)
In-Reply-To: wcck7jkunr5.fsf@shell01.TheWorld.com

Robert A Duff wrote in message ...
>"Marin David Condic" <mcondic.auntie.spam@acm.org> writes:
>
>> 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.  ;-)


Most action routines (callbacks) in Claw are defined as procedure
When_something (...) is null; end When_something;
These may be overridden in for a derived type, but the original routine
is likely to remain with a null body forever. I believe this is common
in object-oriented code.

            Randy.






  reply	other threads:[~2002-11-11 20:32 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
2002-11-11 20:32                   ` Randy Brukardt [this message]
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