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
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
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
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
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
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
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