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

Ben Coman btc at openinworld.com
Wed Jan 20 09:05:41 EST 2016

On Wed, Jan 20, 2016 at 8:41 PM, Dimitris Chloupis
<kilon.alios at gmail.com> 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 over an older
> update that I already have inside the image , do those variables revert back
> to nil values ?


> or do they keep their values as they are ?

Yes.  Loading a package is only loading source code.  Its no different
than manually changing a method's source through the Nautilus system
browser (instance & class variables keep their values throughout)
except you get the whole lot in one go.

cheers -ben

More information about the Pharo-users mailing list