Re: [Pharo-project] Problem with de Traits
TPureBehavior users do: [:e | Transcript show: e printString ;cr] TraitBehavior Behavior in 1.1 and 1.2 so may be you should mentioned your configuration and also get an example that we can run. It would be more efficient to help you, isn't? Stef On Nov 12, 2010, at 2:07 AM, Diogenes Moreira wrote:
Hi Folks..
I have the following method
classesIncluded | includes | includes := OrderedCollection new. TSSerosDB users do:[ :aClass | self processClass: aClass into: includes ]. ^ includes.
TSSerosDB is a Trait..
Well when I run the process, I get a MNU.. reciver of users is nil
But If I inspect "TSSerosDB users", i get a Identity Set...
What's wrong.. why the debugger get something different to another process
Thanks in advance..
well,, that was extrange.. I'm add this line to my method.. classesIncluded | includes | includes := OrderedCollection new. * TSSerosDB users do:[:e | Transcript show: e printString ;cr].* TSSerosDB users do:[ :aClass | self processClass: aClass into: includes ]. ^ includes. And that start work well.. I dont have any Idea what happeng here... but work.. Thank for you answer.. BTW im using Pharo 1.2 one click env, in ubuntu linux. On Fri, Nov 12, 2010 at 4:54 AM, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
TPureBehavior users do: [:e | Transcript show: e printString ;cr]
TraitBehavior Behavior
in 1.1 and 1.2
so may be you should mentioned your configuration and also get an example that we can run. It would be more efficient to help you, isn't?
Stef
On Nov 12, 2010, at 2:07 AM, Diogenes Moreira wrote:
Hi Folks..
I have the following method
classesIncluded | includes | includes := OrderedCollection new. TSSerosDB users do:[ :aClass | self processClass: aClass into: includes ]. ^ includes.
TSSerosDB is a Trait..
Well when I run the process, I get a MNU.. reciver of users is nil
But If I inspect "TSSerosDB users", i get a Identity Set...
What's wrong.. why the debugger get something different to another process
Thanks in advance..
On Fri, Nov 12, 2010 at 10:56 AM, Diogenes Moreira < diogenes.moreira@gmail.com> wrote:
well,, that was extrange.. I'm add this line to my method..
classesIncluded | includes | includes := OrderedCollection new. * TSSerosDB users do:[:e | Transcript show: e printString ;cr].*
TSSerosDB users do:[ :aClass | self processClass: aClass into: includes ]. ^ includes.
And that start work well.. I dont have any Idea what happeng here... but work..
Thank for you answer..
BTW im using Pharo 1.2 one click env,
There is no Pharo 1.2 one click ;)
in ubuntu linux.
On Fri, Nov 12, 2010 at 4:54 AM, Stéphane Ducasse < stephane.ducasse@inria.fr> wrote:
TPureBehavior users do: [:e | Transcript show: e printString ;cr]
TraitBehavior Behavior
in 1.1 and 1.2
so may be you should mentioned your configuration and also get an example that we can run. It would be more efficient to help you, isn't?
Stef
On Nov 12, 2010, at 2:07 AM, Diogenes Moreira wrote:
Hi Folks..
I have the following method
classesIncluded | includes | includes := OrderedCollection new. TSSerosDB users do:[ :aClass | self processClass: aClass into: includes ]. ^ includes.
TSSerosDB is a Trait..
Well when I run the process, I get a MNU.. reciver of users is nil
But If I inspect "TSSerosDB users", i get a Identity Set...
What's wrong.. why the debugger get something different to another process
Thanks in advance..
That right.. In my previous mail i'm not accurase with the description. I'm using a 1.2 image in a one click resources I dowmloded the one click package from pharo project and then replace the image and sources..just to play :).. Best regards Enviado desde mi BlackBerry® de Claro Argentina -----Original Message----- From: Mariano Martinez Peck <marianopeck@gmail.com> Sender: pharo-project-bounces@lists.gforge.inria.fr Date: Tue, 16 Nov 2010 21:45:41 To: <Pharo-project@lists.gforge.inria.fr> Reply-To: Pharo-project@lists.gforge.inria.fr Subject: Re: [Pharo-project] Problem with de Traits On Fri, Nov 12, 2010 at 10:56 AM, Diogenes Moreira < diogenes.moreira@gmail.com> wrote:
well,, that was extrange.. I'm add this line to my method..
classesIncluded | includes | includes := OrderedCollection new. * TSSerosDB users do:[:e | Transcript show: e printString ;cr].*
TSSerosDB users do:[ :aClass | self processClass: aClass into: includes ]. ^ includes.
And that start work well.. I dont have any Idea what happeng here... but work..
Thank for you answer..
BTW im using Pharo 1.2 one click env,
There is no Pharo 1.2 one click ;)
in ubuntu linux.
On Fri, Nov 12, 2010 at 4:54 AM, Stéphane Ducasse < stephane.ducasse@inria.fr> wrote:
TPureBehavior users do: [:e | Transcript show: e printString ;cr]
TraitBehavior Behavior
in 1.1 and 1.2
so may be you should mentioned your configuration and also get an example that we can run. It would be more efficient to help you, isn't?
Stef
On Nov 12, 2010, at 2:07 AM, Diogenes Moreira wrote:
Hi Folks..
I have the following method
classesIncluded | includes | includes := OrderedCollection new. TSSerosDB users do:[ :aClass | self processClass: aClass into: includes ]. ^ includes.
TSSerosDB is a Trait..
Well when I run the process, I get a MNU.. reciver of users is nil
But If I inspect "TSSerosDB users", i get a Identity Set...
What's wrong.. why the debugger get something different to another process
Thanks in advance..
participants (4)
-
Diogenes Moreira -
diogenes.moreira@gmail.com -
Mariano Martinez Peck -
Stéphane Ducasse