Hi Johan,
 
maybe you can help Roberto here (see below).
 
One question from my side:  http://pleiad.cl/research/software/phantom#download
contains no info about the Pharo version.
The premade image is Pharo 1.3.  Is Phantom known to work on higher versions (Pharo 1.4, 2.0, 3.0).
 
If so it would be good to 
  - make it available in the config browser (using MetaRepoForPharo20 on ss3 and MetaRepoForPharo30 on STHub)
    for easy installation 
  - have a Ci job for it

I'm sure it is useful for other projects too.
 
Thx
T.
 
 
I also think you should have a look at Phantom :)
 
Maybe Johan will give you more details :)

Ben
 
On 06 Dec 2013, at 10:14, Torsten Bergmann <[email protected]> wrote:
 
Hi Roberto,

usually what you need is support for so called ABIA (Around, Begin, Inner and After) execution.
Brings Smallscript back to my brain which had nice support for this.

In Squeak there was AspectS, I dont know if there is a port of AspectS for Pharo.

Maybe the PHANtom project can be of help here as it claims to be a modern aspect language
for Pharo:

http://de.slideshare.net/esug/phantom-a-modern-aspect-language-for-pharo

Hope this helps

Bye
T.
 
 
Betreff: [Pharo-dev] [Spy] How to inject code *inside* a method

Hi guys,

I am using Spy for my project, and I need to do something which, on top of my knowledge, is not supported.

Here is the point: Spy allows to insert code before (#beforeRun:with:in:) and after (#afterRun:with:in:) and works perfectly.

Now suppose I want to inject some code *inside* the method, e.g.,

aMethodToBeProfiled

do something

"Injected code accessing some fields of the current instance of this object”
Transcript show: self field asString.

Is there any support for this?

Thanks in advance,
R


 

Reply via email to