Re: [Pharo-users] setter method

2016-12-10 Thread stepharong
Hi everybody! I've just joined the community:) and have a question How to write the method count: such that, when invoked on an instance of Counter, instance variable is set to the argument given to the message? so that Counter new count: 7 would set the value of a new Counter instance to 7

Re: [Pharo-users] setter method

2016-12-09 Thread Ben Coman
On Sat, Dec 10, 2016 at 1:39 AM, Kateryna Aloshkina wrote: > Hi everybody! > > I've just joined the community:) and have a question > How to write the method count: such that, when invoked on an instance of > Counter, instance variable is set to the argument given to the message? > so that > Count

[Pharo-users] setter method

2016-12-09 Thread Kateryna Aloshkina
Hi everybody! I've just joined the community:) and have a question How to write the method count: such that, when invoked on an instance of Counter, instance variable is set to the argument given to the message? *so thatCounter new count: 7* *would set the value of a new Counter instance to 7* (