Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
research:scope:levels:classpects-loops [2013/04/26 13:18] – created ifiguero | research:scope:levels:classpects-loops [2013/04/26 13:23] (current) – ifiguero | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | [[research: | + | The following download contains the EOS-U compiler, version 0.3.4, downloaded from http:// |
+ | |||
+ | The code for the Activity classspect that provokes an aspect loop is: | ||
+ | |||
+ | < | ||
+ | using System; | ||
+ | using Eos.Runtime; | ||
+ | |||
+ | public class ActivityAspect | ||
+ | { | ||
+ | |||
+ | public object LogActivity(Eos.Runtime.AroundADP adp, Point p) | ||
+ | { | ||
+ | object result = null; | ||
+ | Console.WriteLine(" | ||
+ | Console.WriteLine(" | ||
+ | result = adp.InnerInvoke(); | ||
+ | return result; | ||
+ | } | ||
+ | |||
+ | |||
+ | static object around execution(any any(..)) || initialization(any(..)) | ||
+ | && !within(ActivityAspect) && aroundptr(adp) && target(p): | ||
+ | call LogActivity(Eos.Runtime.AroundADP adp, Point p); | ||
+ | } | ||
+ | </ |