 |
Forums |
Admin Discussion Forums: help Start New Thread
By: Dean Wampler
RE: aspect in a separate file [ reply ] 2012-08-18 21:15
|
I never implemented the ability for an aspect to be loaded and still affect classes loaded after it.
The best solution I can recommend is to put the statements that define the aspects in your "driver" script, e.g., the equivalent of "main", after you have imported your other classes. That will also keep your aspects separate from your classes.
Hope that helps.
|
By: Sogol M
aspect in a separate file [ reply ] 2012-08-15 12:09
|
Hello everyone! :)
I need to store an Aquarium aspect in a separate file rather than writing it directly in the class or module, which I need to instrument.
Is there a better way to get this work, without requiring (or including) the aspect in that class?
I don't like this solution, especially because I always have to require the aspect in the right place in the class, i.e. right after some method definition, and I can't simply require the aspect at the beginning of that class, because then I get a warning, that no join points could be found.
|
|
 |