jemc changed the topic of #ponylang to: Welcome! Please check out our Code of Conduct => https://github.com/ponylang/ponyc/blob/master/CODE_OF_CONDUCT.md | Public IRC logs are available => http://irclog.whitequark.org/ponylang | Please consider participating in our mailing lists => https://pony.groups.io/g/pony
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> TwoNotes: I don't know if you read the logs, but just in case search for "this->" here: https://bluishcoder.co.nz/2016/05/04/bang-hat-and-arrow-in-pony.html
<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> Looking at the viewpoint adaption table that shows 'box' https://tutorial.ponylang.org/capabilities/combining-capabilities.html
<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]
PonyLover has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
prettyvanilla has joined #ponylang
prettyvanilla_ has quit [Ping timeout: 250 seconds]
unbalanced has joined #ponylang
Matthias247 has quit [Read error: Connection reset by peer]