Re: [Pharo-users] why is asDictonary a class method

2019-03-31 Thread Roelof Wobben
Tim Thanks I could not answer this because of the birtday of my wife today but you did a excellent job. Roelof Op 31-3-2019 om 17:29 schreef Tim Mackinnon: Hi Richard/all - thanks for helping Roelof out. He

Re: [Pharo-users] why is asDictonary a class method

2019-03-31 Thread Tim Mackinnon
Hi Richard/all - thanks for helping Roelof out. He’s working through the exercism.io exercises that we’ve managed to convert so far. As they are based on more C like languages, they aren’t always as OO as we want (once we get a decent set converted, we’ll try and add some smallish examples - any

Re: [Pharo-users] why is asDictonary a class method

2019-03-31 Thread Richard O'Keefe
I think you probably need to show us *all* the code. directionLooking: aString self new direction: aString Well, there is your problem. There are two ways for a method to return a value. One is to execute '^ e' for some expression e, which is quite like a 'return e;' statement in C. The other

Re: [Pharo-users] why is asDictonary a class method

2019-03-30 Thread Roelof Wobben
Op 31-3-2019 om 03:47 schreef Richard O'Keefe: Question 1.  Should that be #asDictionary? yes, it does. Question 2.  If not, what's a Dictonary? Question 3.  I see you

Re: [Pharo-users] why is asDictonary a class method

2019-03-30 Thread Richard O'Keefe
Question 1. Should that be #asDictionary? Question 2. If not, what's a Dictonary? Question 3. I see you are using self-encapsulation, with a getter 'self robot' and a setter 'self robot: something'. Of course that means that outside code can fr

Re: [Pharo-users] why is asDictonary a class method

2019-03-30 Thread Dennis Schetinin
Didn't you forget to return (^) an instance from #directionLooking:? And why do you need to send #yourself? сб, 30 марта 2019 г. в 21:19, Roelof Wobben : > Hello, > > Im busy with a new challenge from exercism. > Where I have to keep track of a robot , where it facing and on that > coordinate t

[Pharo-users] why is asDictonary a class method

2019-03-30 Thread Roelof Wobben
Hello, Im busy with a new challenge from exercism. Where I have to keep track of a robot , where it facing and on that coordinate the robot is. so I made this function what the test wanted createDirection: aString position: aCollection     self robot: (Robot directionLooking: aString) yoursel