Matthias247 has quit [Read error: Connection reset by peer]
c355e3b has joined #ponylang
unbalanced has joined #ponylang
jemc has joined #ponylang
TwoNotes has joined #ponylang
<
TwoNotes>
I am trying to clear an Array. I say _body.clear(). Message says that the receiver is type this->Array. Where did the "this->" come from?
TwoNotes has quit [Quit: Leaving.]
c355e3b has quit [Quit: Connection closed for inactivity]
<
doublec>
I assume _body is a field
<
doublec>
So the "this->Array" means accessing an array that is a field of the object (implicitly through the 'this')
<
doublec>
And viewpoint adaption comes into affect
<
doublec>
If the function you are doing this inside of is a 'box' (the default) and the field is a 'ref' then it's box->ref.
<
doublec>
So the array is a 'box' and 'clear' can't be called on it.
unbalanced has quit [Ping timeout: 258 seconds]
jemc has quit [Ping timeout: 264 seconds]
jemc has joined #ponylang
jemc has quit [Ping timeout: 250 seconds]
graaff has joined #ponylang
Matthias247 has joined #ponylang
c355e3b has joined #ponylang
unbalanced has joined #ponylang
abeaumont has quit [Ping timeout: 250 seconds]
abeaumont has joined #ponylang
prettyvanilla_ has joined #ponylang
prettyvanilla has quit [Ping timeout: 248 seconds]
PonyLover has joined #ponylang
graaff has quit [Quit: Leaving]
unbalanced has quit [Ping timeout: 246 seconds]
prettyvanilla has joined #ponylang
prettyvanilla_ has quit [Ping timeout: 250 seconds]
unbalanced has joined #ponylang
Matthias247 has quit [Read error: Connection reset by peer]