Re: [Pharo-users] Updating a project and NIL class variables

2016-01-20 Thread Sven Van Caekenberghe
ro is welcome > Subject: Re: [Pharo-users] Updating a project and NIL class variables > > no apologies owed, I just asked because I want to make sure Pharo wont do > anything weird behind my back :) > > On Wed, Jan 20, 2016 at 4:39 PM Sven Van Caekenberghe wrote: > > >

Re: [Pharo-users] Updating a project and NIL class variables

2016-01-20 Thread Henrik Nergaard
project and NIL class variables no apologies owed, I just asked because I want to make sure Pharo wont do anything weird behind my back :) On Wed, Jan 20, 2016 at 4:39 PM Sven Van Caekenberghe mailto:s...@stfx.eu>> wrote: > On 20 Jan 2016, at 15:34, Dimitris Chloupis > mailto:kilon.al.

Re: [Pharo-users] Updating a project and NIL class variables

2016-01-20 Thread Dimitris Chloupis
no apologies owed, I just asked because I want to make sure Pharo wont do anything weird behind my back :) On Wed, Jan 20, 2016 at 4:39 PM Sven Van Caekenberghe wrote: > > > On 20 Jan 2016, at 15:34, Dimitris Chloupis > wrote: > > > > Thank you for the info but I think I did not make myself cle

Re: [Pharo-users] Updating a project and NIL class variables

2016-01-20 Thread Dimitris Chloupis
Thank you for the info but I think I did not make myself clear because you say "remain nil" Ok Imagine a class SomeClass and that class has a variable we will call SomeVariable, class variable that is , there is no class initialize method, now that class has a method that is eventually called , so

Re: [Pharo-users] Updating a project and NIL class variables

2016-01-20 Thread Sven Van Caekenberghe
> On 20 Jan 2016, at 15:34, Dimitris Chloupis wrote: > > Thank you for the info but I think I did not make myself clear because you > say "remain nil" > > Ok Imagine a class SomeClass and that class has a variable we will call > SomeVariable, class variable that is > , there is no class initi

Re: [Pharo-users] Updating a project and NIL class variables

2016-01-20 Thread Dimitris Chloupis
ok thank you all , its now crystal clear that I need to follow Sven's approach, or maybe do it manually creating a reset method. On Wed, Jan 20, 2016 at 4:31 PM Dimitris Chloupis wrote: > Thank you for the info but I think I did not make myself clear because you > say "remain nil" > > Ok Imagine

Re: [Pharo-users] Updating a project and NIL class variables

2016-01-20 Thread Ben Coman
On Wed, Jan 20, 2016 at 8:41 PM, Dimitris Chloupis wrote: > So my question is this , I have a class with nil variables that are lazy > initialised only when needed the first time and of course they keep their > values from there on. > > Lets say I get the latest update from github via metacello ov

Re: [Pharo-users] Updating a project and NIL class variables

2016-01-20 Thread Hilaire
Is it instance or class variables ? In both cases, there are unchanged. If class variables, Sven explain how to reinitialize. Hilaire -- Dr. Geo http://drgeo.eu

Re: [Pharo-users] Updating a project and NIL class variables

2016-01-20 Thread Sven Van Caekenberghe
They remain nil. That is why #initialize on the class side is needed. You can call that explicitly in a post load script, or rely on the class loading mechanism that normally calls #initialize automatically when loading a class. The warning is: this only happens when the *source* code of the #

[Pharo-users] Updating a project and NIL class variables

2016-01-20 Thread Dimitris Chloupis
So my question is this , I have a class with nil variables that are lazy initialised only when needed the first time and of course they keep their values from there on. Lets say I get the latest update from github via metacello over an older update that I already have inside the image , do those v