SeanTAllen changed the topic of #ponylang to: This IRC channel is no longer used. Please consider joining our Zulip community => https://ponylang.zulipchat.com/
<Nilium> I think it might be possible to do what you want via promises but, without making a pun, I can't guarantee that -- still just learning Pony myself in my spare time.
<Nilium> Really want to see what I can do with OpenGL with it.
<doublec> jarindyk2: this might help explaining actors, and using promises like Nilium suggested https://bluishcoder.co.nz/2016/05/11/exploring-actors-in-pony.html
aturley_ has joined #ponylang
aturley has quit [Ping timeout: 268 seconds]
<jarindyk2> thank you
<jarindyk2> doublec: I meant "String val" instead of "String"
<jarindyk2> I used classes but "String val" still allows the actor to modify Foo.x where Foo is a class and x is a var inside that class
<jarindyk2> ofc if I use "let", then I cannot, I get a compiler error as expected
<jarindyk2> but var x: string val = "" can be modified
<jarindyk2> so in what context does "val" make it immutable?
aturley_ is now known as aturley
<doublec> jarindyk2: with 'val' the string itself is immutable. So given 'var x: String val = "foo"' then I can't call methods on 'x' that modify it.
<doublec> jarindyk2: the variable 'x' however can be reassigned to another 'String val'
<doublec> jarindyk2: The 'val' section of this post might help https://bluishcoder.co.nz/2017/07/31/reference_capabilities_consume_recover_in_pony.html