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
aturley has joined #ponylang
trapped has quit [Read error: Connection reset by peer]
aturley has quit [Ping timeout: 250 seconds]
aturley has joined #ponylang
aturley has quit [Ping timeout: 260 seconds]
jemc has joined #ponylang
DaniR has joined #ponylang
<DaniR> Hello ! I have a question with capabilities.
<DaniR> I'm using the Wombat class in the tutorial
<DaniR> And I recovered it as an iso. And want to print its hunger: http://pastebin.com/YvQyD7xS
<DaniR> But it doesn't work. Because it says that womb is an iso! .
<DaniR> If I understand correctly, the problem is that womb is an iso in the main create constructor and when trying to do "womb.hunger()" the womb is a parameter in hunger and we can't have two references to an iso.
<DaniR> But even if I do `(consume womb).hunger()` it still aliases to iso!, which is not a subtype of box
<DaniR> Which if it was an iso, according to the Automatic Receiver Recovery can work by itself
<DaniR> Sorry, the correct pastebin is: http://pastebin.com/ae7NaVbt
<DaniR> I recovered the iso, and then passed it to a (useless - because I am practising) function, which consumes it, changes its hunger level and returns it as an iso
<DaniR> And also, in the consumeWombat function, it doens't change anything if I return "consume a" or just "a". Why is that?
jemc has quit [Ping timeout: 276 seconds]
c355e3b has quit [Quit: Connection closed for inactivity]
aturley has joined #ponylang
aturley has quit [Ping timeout: 246 seconds]
<SeanTAllen> DaniR: so... iso! means that it is an alias to an iso
<SeanTAllen> you need to consume the womb
<DaniR> Right, and I consumed it when passing it to the "consumeWombat" function
<DaniR> But this function is supossed to return an iso, not an iso!
<SeanTAllen> can you send all your code?
<SeanTAllen> including the code for Wombat
<SeanTAllen> so
<SeanTAllen> works so, why the iso? are you playing around to learn something from another context?
<DaniR> Right. Just trying things out to see if I understand
<SeanTAllen> so...
<SeanTAllen> also works
<DaniR> Yes. And I don't understand the difference between the last pastebin and my pastebin, if the "consumeWombat" function is supposed to return an iso as I already had.
<SeanTAllen> and I think this is what you wanted...
<SeanTAllen> note the ^ on the return type
<DaniR> Right !
<DaniR> Thank you. What is the difference?
<SeanTAllen> there's a good blog post on this...
<SeanTAllen> you can find some good posts in general at https://pony.groups.io/g/user/wiki/Planet-Pony
<SeanTAllen> the ^ on the return type is doing what you thought the consume a would do
<SeanTAllen> i think Chris' blog post will explain
<SeanTAllen> if you have questions after that, drop me an email.
<DaniR> Okay, great. Thanks !
aturley has joined #ponylang
aturley has quit [Ping timeout: 258 seconds]
DaniR has quit [Quit: Page closed]
jemc has joined #ponylang
unbalancedparen has quit [Quit: WeeChat 1.5]
jemc has quit [Ping timeout: 244 seconds]
graaff has joined #ponylang
aturley has joined #ponylang
aturley has quit [Ping timeout: 276 seconds]
jemc has joined #ponylang
jemc has quit [Ping timeout: 250 seconds]
copy` has quit [Quit: Connection closed for inactivity]
aturley has joined #ponylang
aturley has quit [Ping timeout: 272 seconds]
rurban has joined #ponylang
rurban1 has joined #ponylang
nyarumes has joined #ponylang
rurban has quit [Ping timeout: 240 seconds]
nyarum has quit [Ping timeout: 246 seconds]
rurban has joined #ponylang
rurban1 has quit [Ping timeout: 260 seconds]
aturley has joined #ponylang
aturley has quit [Ping timeout: 258 seconds]
tm-exa has joined #ponylang
Matthias247 has joined #ponylang
rurban1 has joined #ponylang
rurban2 has joined #ponylang
rurban3 has joined #ponylang
rurban has quit [Ping timeout: 276 seconds]
rurban1 has quit [Ping timeout: 244 seconds]
rurban2 has quit [Ping timeout: 244 seconds]
rurban has joined #ponylang
rurban3 has quit [Ping timeout: 244 seconds]
tm-exa has quit [Quit: Computer has gone to sleep]
rurban has quit [Quit: Leaving.]
gsteed has joined #ponylang
rurban has joined #ponylang
hibnico has joined #ponylang
c355e3b has joined #ponylang
aturley has joined #ponylang
aturley has quit [Ping timeout: 260 seconds]
trapped has joined #ponylang
aturley has joined #ponylang
aturley has quit [Ping timeout: 276 seconds]
kajstrom_ has quit [Ping timeout: 244 seconds]
kajstrom has joined #ponylang
graaff has quit [Quit: Leaving]
Praetonus has joined #ponylang
graaff has joined #ponylang
aturley has joined #ponylang
aturley has quit [Ping timeout: 244 seconds]
copy` has joined #ponylang
rurban has quit [Quit: Leaving.]
hibnico has quit [Quit: hibnico]
jemc has joined #ponylang
hibnico has joined #ponylang
hibnico has quit [Quit: hibnico]
hibnico has joined #ponylang
rurban has joined #ponylang
aturley has joined #ponylang
hibnico has quit [Quit: hibnico]
hibnico has joined #ponylang
aturley has quit [Ping timeout: 244 seconds]
hibnico has quit [Quit: hibnico]
hibnico has joined #ponylang
rurban has quit [Quit: Leaving.]
aturley has joined #ponylang
aturley has quit [Ping timeout: 240 seconds]
unbalancedparen has joined #ponylang
aturley has joined #ponylang
aturley has quit [Ping timeout: 246 seconds]
copy` has quit [Quit: Connection closed for inactivity]
gsteed has quit [Quit: Leaving]
jemc has quit [Ping timeout: 260 seconds]
Achraf has joined #ponylang
Achraf_ has joined #ponylang
Achraf has quit [Ping timeout: 250 seconds]
copy` has joined #ponylang
graaff has quit [Quit: Leaving]
aturley has joined #ponylang
aturley has quit [Ping timeout: 244 seconds]
aturley has joined #ponylang
aturley has quit [Ping timeout: 260 seconds]
Achraf_ has quit [Ping timeout: 250 seconds]
<srm`> why there is nothing about #read, #send, #share, #any, #alias in doc ?
<SeanTAllen> a PR for that would be great srm`
hibnico has quit [Quit: hibnico]
aturley has joined #ponylang
aturley has quit [Ping timeout: 240 seconds]
rurban has joined #ponylang
rurban has quit [Client Quit]
<doublec> I was going to add it to a generics section and started writing something but stalled due to work
tm-exa has joined #ponylang
unbalancedparen has quit [Quit: WeeChat 1.5]
unbalancedparen has joined #ponylang
<SeanTAllen> ^5 to that doublec. both jtfmumm and aturley were going to work on generics but... something something work. seems to be going around.
aturley has joined #ponylang
fefee has joined #ponylang
aturley has quit [Ping timeout: 244 seconds]
hibnico has joined #ponylang
Praetonus has quit [Quit: Leaving]
tm-exa has quit [Quit: Computer has gone to sleep]
<doublec> SeanTAllen: yeah, someone should look into this work problem, it's an epidemic.
<doublec> SeanTAllen: Writing is harder than it looks (as I'm sure you well know!). Whenever I think "I'll write a quick blog post about this" it's hours later that I'm thinking "Will this ever end".
trapped has quit [Read error: Connection reset by peer]
<SeanTAllen> yup
aturley has joined #ponylang
aturley has quit [Ping timeout: 252 seconds]
Matthias247 has quit [Read error: Connection reset by peer]
hibnico has quit [Quit: hibnico]
aturley has joined #ponylang
aturley has quit [Ping timeout: 260 seconds]