Re: [Pharo-users] Accessors vs instance variables

2015-10-03 Thread stepharo
Hi lyn I have the same experience than sven. Stef -Lyn I think that with the current options in the tools (auto generation of accessors based on instance variables, checking references to instance variables, renaming either accessors or instance variables, syntax coloring) the difference

Re: [Pharo-users] Accessors vs instance variables

2015-10-02 Thread Craig Johnson
Hi, This is a bugbear for me. On 2015/09/30 09:35 PM, Lyn Headley wrote: Hello, As I understand it, in Smalltalk, the instance variables of a class C are "protected" - able to be referenced by methods of C or its subclasses, but not by other objects. This is a useful feature as it clearly

Re: [Pharo-users] Accessors vs instance variables

2015-10-02 Thread Peter Uhnák
> > Nobody has shown me a good reason for their existence and I never use them > except where I'm forced to use them in Spec How so? Spec requires only read accessor for your (sub)components.

Re: [Pharo-users] Accessors vs instance variables

2015-09-30 Thread Sven Van Caekenberghe
Hi, > On 30 Sep 2015, at 21:35, Lyn Headley wrote: > > Hello, > > As I understand it, in Smalltalk, the instance variables of a class C are > "protected" - able to be referenced by methods of C or its subclasses, but > not by other objects. This is a useful feature as it