comp.lang.ada
 help / color / mirror / Atom feed
From: Jim Rogers <jimmaureenrogers@worldnet.att.net>
Subject: Re: Aspect-Oriented Programming
Date: Thu, 10 Oct 2002 21:09:51 GMT
Date: 2002-10-10T21:09:51+00:00	[thread overview]
Message-ID: <3DA5EC5A.1060506@worldnet.att.net> (raw)
In-Reply-To: 3DA5E540.65F4DEF3@mmm.com

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




  reply	other threads:[~2002-10-10 21:09 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-29 19:46 Aspect-Oriented Programming Richard Riehle
2002-09-29 22:56 ` Nick Roberts
2002-09-29 23:27   ` Pat Rogers
2002-10-01 23:45   ` Richard Riehle
2002-10-03  0:11     ` Nick Roberts
2002-10-10 20:38   ` Programmer Dude
2002-10-10 21:09     ` Jim Rogers [this message]
2002-10-15 16:13       ` Programmer Dude
2002-09-30  6:02 ` Caffeine Junky
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox