From: mab@dst17.wdl.loral.com (Mark A Biggar)
Subject: Ada95 question: renaming as body vs separate
Date: 1996/06/06
Date: 1996-06-06T00:00:00+00:00 [thread overview]
Message-ID: <4p7p1p$79m@wdl1.wdl.loral.com> (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
next reply other threads:[~1996-06-06 0:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-06-06 0:00 Mark A Biggar [this message]
1996-06-07 0:00 ` Ada95 question: renaming as body vs separate Robert A Duff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox