Re: [Pharo-users] "self problem" with Ghost (virus)

2016-07-29 Thread Denis Kudriashov
Thank's Ben. 2016-07-29 13:11 GMT+02:00 Ben Coman : > > Your use of that last term to describe this indicates > GHObjectInterceptor might be a reasonable alternative. Though perhaps > that sounds like its intercepting Objects when its intercepting > Messages. So maybe GHMessageInterceptor(??)

Re: [Pharo-users] "self problem" with Ghost (virus)

2016-07-29 Thread Ben Coman
On Thu, Jul 28, 2016 at 10:21 PM, Denis Kudriashov wrote: > > 2016-07-28 12:56 GMT+02:00 Esteban Lorenzano : >> >> I do not like either the “virus” name. >> not just because is negative in a subjective way… also it hides what it >> does inside a fantasy name, and that IMO is negative to self disco

Re: [Pharo-users] "self problem" with Ghost (virus)

2016-07-28 Thread Guille Polito
Denis, I recommend that you read carefully the paper that Steven sent (the one about message passing, that Stef wrote many years ago :)). If you read carefully, you'll see that what you call object virus is already there, and falls into the category "anonymous classes". Maybe you can get som

Re: [Pharo-users] "self problem" with Ghost (virus)

2016-07-28 Thread Denis Kudriashov
2016-07-28 12:56 GMT+02:00 Esteban Lorenzano : > I do not like either the “virus” name. > not just because is negative in a subjective way… also it hides what it > does inside a fantasy name, and that IMO is negative to self discovery of > the system. > > I mean… a framework can have a fantasy nam

Re: [Pharo-users] "self problem" with Ghost (virus)

2016-07-28 Thread stepharo
Le 28/7/16 à 12:11, Guille Polito a écrit : This is the difference between Forwarding and Delegation [1]. Accessorily to this discussion, the name "Virus" does not yet convince me: - first, it has a negative connotation in informatics. People do not want to have virus installed. They do not

Re: [Pharo-users] "self problem" with Ghost (virus)

2016-07-28 Thread Steven Costiou
Thank you very much =) It works perfectly ! Steven. Le 2016-07-28 14:05, Denis Kudriashov a écrit : > Steven, I fixed it. > Load development version (or just this: > Ghost-ObjectVirus-DenisKudryashov.12). > > I will update stable soon > > 2016-07-28 13:46 GMT+02:00 Steven Costiou : >

Re: [Pharo-users] "self problem" with Ghost (virus)

2016-07-28 Thread Denis Kudriashov
And stable version 2.2.2 is done 2016-07-28 14:05 GMT+02:00 Denis Kudriashov : > Steven, I fixed it. > Load development version (or just this: > Ghost-ObjectVirus-DenisKudryashov.12). > > I will update stable soon > > 2016-07-28 13:46 GMT+02:00 Steven Costiou : > >> Ok by digging a bit, i found t

Re: [Pharo-users] "self problem" with Ghost (virus)

2016-07-28 Thread Denis Kudriashov
Steven, I fixed it. Load development version (or just this: Ghost-ObjectVirus-DenisKudryashov.12). I will update stable soon 2016-07-28 13:46 GMT+02:00 Steven Costiou : > Ok by digging a bit, i found that it was a problem in my behavior though i > don't understand it. > > When sending message to

Re: [Pharo-users] "self problem" with Ghost (virus)

2016-07-28 Thread Steven Costiou
Ok by digging a bit, i found that it was a problem in my behavior though i don't understand it. When sending message to self, the #isMetaMessage: returns always true when evaluating the first test condition GHCurrentMetaLevelDepth value > 0 ifTrue: [ ^true ]. The value returns something higher th

Re: [Pharo-users] "self problem" with Ghost (virus)

2016-07-28 Thread Norbert Hartl
> Am 28.07.2016 um 12:56 schrieb Esteban Lorenzano : > > I do not like either the “virus” name. > not just because is negative in a subjective way… also it hides what it does > inside a fantasy name, and that IMO is negative to self discovery of the > system. > > I mean… a framework can have

Re: [Pharo-users] "self problem" with Ghost (virus)

2016-07-28 Thread Esteban Lorenzano
I do not like either the “virus” name. not just because is negative in a subjective way… also it hides what it does inside a fantasy name, and that IMO is negative to self discovery of the system. I mean… a framework can have a fantasy name… but a class? A method name? (#infect:… come on!)

Re: [Pharo-users] "self problem" with Ghost (virus)

2016-07-28 Thread Steven Costiou
Hi, I think i am missing something. For example in the following code (took from the tests): | victim virus actual | virus := GHObjectVirus behaviour: GHGhostBehaviourStub new. victim := 0@0 corner: 3@4. virus infect: victim. victim corner The evaluation is trapped by t

Re: [Pharo-users] "self problem" with Ghost (virus)

2016-07-28 Thread Guille Polito
This is the difference between Forwarding and Delegation [1]. Accessorily to this discussion, the name "Virus" does not yet convince me: - first, it has a negative connotation in informatics. People do not want to have virus installed. They do not want virus infecting their machines. People us

Re: [Pharo-users] "self problem" with Ghost (virus)

2016-07-28 Thread Denis Kudriashov
I think I not understood second part of "self problem" in this paper. But self sends are covered by virus as I described. 2016-07-28 11:30 GMT+02:00 Denis Kudriashov : > Hi > > 2016-07-27 22:19 GMT+02:00 Steven Costiou : > >> Hi, >> >> I use virus from Ghost to intercept messages sent to a given

Re: [Pharo-users] "self problem" with Ghost (virus)

2016-07-28 Thread Denis Kudriashov
Hi 2016-07-27 22:19 GMT+02:00 Steven Costiou : > Hi, > > I use virus from Ghost to intercept messages sent to a given object and > adapt methods behaviors for this particular object only. However it would > seems that doing interception this way is subject to the "self problem" > described in thi

[Pharo-users] "self problem" with Ghost (virus)

2016-07-27 Thread Steven Costiou
Hi, I use virus from Ghost to intercept messages sent to a given object and adapt methods behaviors for this particular object only. However it would seems that doing interception this way is subject to the "self problem" described in this paper from Stéphane (DUCASSE, Stéphane. Evaluating messag