From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1ee8955271ce18b9,start X-Google-Attributes: gid103376,public From: mab@dst17.wdl.loral.com (Mark A Biggar) Subject: Ada95 question: renaming as body vs separate Date: 1996/06/06 Message-ID: <4p7p1p$79m@wdl1.wdl.loral.com>#1/1 X-Deja-AN: 158885062 organization: Loral Western Development Labs newsgroups: comp.lang.ada Date: 1996-06-06T00:00:00+00:00 List-Id: 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 ;" 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