* Ada95 question: renaming as body vs separate
@ 1996-06-06 0:00 Mark A Biggar
1996-06-07 0:00 ` Robert A Duff
0 siblings, 1 reply; 2+ messages in thread
From: Mark A Biggar @ 1996-06-06 0:00 UTC (permalink / raw)
Is reanming as the body of a subprogram allowed in the case of a separate
declaration. E.G:
package foo is
procedure bar;
end foo;
package body foo is
procedure bar is separate;
end foo;
separate(foo)
procedure bar renames ...;
The reason I want this is that I have a GUI Builder that will generate
dummy (null; bodied) callback procedure in a package. I can easily
get it to produce the string "is separate;" instead of the string
"is begin null; end <some_name>;" which allows for separate compliation
of the callbacks and no need to hand re-edit the callback package when
ever it is regenerated by the GUI builder. Now there are cases where I want
exactly the same callback code attached to different callback entry points.
If renameing as a body works with separate then this is easy, otherwise I will
either have to duplicate code or have callback bodies that just recall another
routine.
--
Mark BIggar
mab@wdl.loral.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Ada95 question: renaming as body vs separate
1996-06-06 0:00 Ada95 question: renaming as body vs separate Mark A Biggar
@ 1996-06-07 0:00 ` Robert A Duff
0 siblings, 0 replies; 2+ messages in thread
From: Robert A Duff @ 1996-06-07 0:00 UTC (permalink / raw)
In article <4p7p1p$79m@wdl1.wdl.loral.com>,
Mark A Biggar <mab@dst17.wdl.loral.com> wrote:
>Is reanming as the body of a subprogram allowed in the case of a separate
>declaration.
No.
- Bob
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1996-06-07 0:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-06-06 0:00 Ada95 question: renaming as body vs separate Mark A Biggar
1996-06-07 0:00 ` Robert A Duff
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox