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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2e26b805f6d341ba X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-10 14:09:51 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn4feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!not-for-mail Message-ID: <3DA5EC5A.1060506@worldnet.att.net> From: Jim Rogers User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Aspect-Oriented Programming References: <3D975896.CDB6CA2E@adaworks.com> <3d977d7e.65439093@news.cis.dfn.de> <3DA5E540.65F4DEF3@mmm.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 10 Oct 2002 21:09:51 GMT NNTP-Posting-Host: 12.86.33.197 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1034284191 12.86.33.197 (Thu, 10 Oct 2002 21:09:51 GMT) NNTP-Posting-Date: Thu, 10 Oct 2002 21:09:51 GMT Organization: AT&T Worldnet Xref: archiver1.google.com comp.lang.ada:29695 Date: 2002-10-10T21:09:51+00:00 List-Id: Programmer Dude wrote: > Nick Roberts wrote: > > I was very interested in your example of AOP. I puzzled over this: > > >>Now, suppose we wished to divide this into the aspects: Debug.Before; >>Main; Debug.After. The refactoring would generate the following >>compilation units: >> >> private package Ice_Cream.Debug is end; >> private package Ice_Cream.Debug.Before is >> [...] >> end Ice_Cream.Debug.Before; >> >> private package Ice_Cream.Main is >> [...] >> end Ice_Cream.Main; >> >> private package body Ice_Cream.Debug.After is >> [...] >> end Ice_Cream.Debug.After; >> > > Should the keyword "body" not be there above? (I have, so far, only > a smattering, passing knowledge of Ada, so I'm probably wrong.) > > In any event, I found it a very educational example; thanks! > These are private package specifications. As such they must not have the word "body" as part of their declaration line. The private bodies would have the word "body". Jim Rogers