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
rurban has quit [Quit: Leaving.]
emancu has joined #ponylang
jemc_ has quit [Ping timeout: 246 seconds]
jemc_ has joined #ponylang
Praetonus has quit [Quit: Leaving]
dimagog has joined #ponylang
<dimagog> Hi, how do I create "String iso" string?
<dimagog> The following does not work: var x: String iso = String.create()
jemc_ has quit [Ping timeout: 265 seconds]
<dimagog> Never mind, figured it out:
<dimagog> var s: String iso = recover String(100).append("Hello").append(" world!") end
<dimagog> env.out.print(consume s)
jemc has joined #ponylang
amclain has quit [Quit: Leaving]
emancu has quit [Ping timeout: 244 seconds]
c355e3b has quit [Quit: Connection closed for inactivity]
rurban has joined #ponylang
rurban has quit [Client Quit]
dimagog_ has joined #ponylang
mcguire1 has quit [Ping timeout: 246 seconds]
mcguire has joined #ponylang
dimagog_ has quit [Ping timeout: 260 seconds]
emancu has joined #ponylang
jemc has quit [Ping timeout: 260 seconds]
emancu has quit [Ping timeout: 245 seconds]
emancu has joined #ponylang
rurban has joined #ponylang
dinfuehr has quit [Ping timeout: 268 seconds]
dinfuehr has joined #ponylang
srenatus[m] has quit [Ping timeout: 260 seconds]
buchanon[m] has quit [Ping timeout: 250 seconds]
M-Ingo has quit [Ping timeout: 250 seconds]
prose[m] has quit [Ping timeout: 260 seconds]
M-hrjet has quit [Ping timeout: 250 seconds]
irx[m] has quit [Ping timeout: 260 seconds]
_andre has joined #ponylang
buchanon[m] has joined #ponylang
M-hrjet has joined #ponylang
srenatus[m] has joined #ponylang
M-Ingo has joined #ponylang
irx[m] has joined #ponylang
prose[m] has joined #ponylang
rurban has quit [Quit: Leaving.]
<SeanTAllen> dimagog: in that particular case, you don't need an issue. a val would work. you can do your mutations inside the recover and then assign as: let s: String = ...
rurban has joined #ponylang
rurban has quit [Quit: Leaving.]
rurban has joined #ponylang
brweber2 has joined #ponylang
brweber2 has quit [Client Quit]
jemc has joined #ponylang
c355e3b has joined #ponylang
Praetonus has joined #ponylang
emancu has quit []
rurban has quit [Quit: Leaving.]
rurban has joined #ponylang
rurban has quit [Client Quit]
rurban has joined #ponylang
amclain has joined #ponylang
rurban has left #ponylang [#ponylang]
_whitelogger has joined #ponylang
_andre has quit [Quit: leaving]
prettyvanilla has quit [Remote host closed the connection]
<dimagog> @SeanTAllen: I know I don't need it for env.out.print, it's just for demonstration. My goal was to create an iso string so I can send it to another actor.
<dimagog> In fact even the following code works:
<dimagog> var s: String iso = recover String(100) end
<dimagog> s.append("Hello")
<dimagog> s.append(" world!")
<dimagog> env.out.println(consume s)
prettyvanilla has joined #ponylang
<Praetonus> dimagog: Yes, that's auto-recovery. You can call a ref or box method on an iso object if the arguments and return value are all sendable
dimagog has left #ponylang [#ponylang]
dimagog_ has joined #ponylang
dimagog_ has left #ponylang [#ponylang]
dimagog_ has joined #ponylang
dimagog_ has quit [Quit: Page closed]
dimagog has joined #ponylang
<dimagog> Praetonus: interesting, thanks. I'm just reading about it now in the Tutorial and I'm trying samples as I go.
jemc has quit [Ping timeout: 252 seconds]