SeanTAllen changed the topic of #ponylang to: This IRC channel is no longer used. Please consider joining our Zulip community => https://ponylang.zulipchat.com/
martinium has joined #ponylang
martinium has quit [Quit: Textual IRC Client: www.textualapp.com]
acarrico has joined #ponylang
jarindyk2 has joined #ponylang
<jarindyk2> https://pastebin.com/p7EdiEg6 How do I access actor Foo's variable without a func that returns it?
<jarindyk2> I wanted to make it String val to see if it'd allow me tp modify from another actor, but maybe there's a syntax for it of what I'm unaware
<jarindyk2> the variable is public, so not sure what it means if i cannot access it from another actor when it's public but I guess there's a diff syntax for it.. maybe
<aturley> jarindyk2 welcome.
<jarindyk2> hey
<aturley> this IRC channel is no longer actively used, we do our discussions using zulip.
<jarindyk2> :c
<jarindyk2> is there a zulip and irc bridge?
<aturley> not that i'm aware of.
<aturley> zulip is based around threads.
<aturley> it wouldn't really translate into IRC very well.
<jarindyk2> yeah thats true
<jarindyk2> ive been looking for an answer for a while now but i really just started writing pony, need to read more
<aturley> i can quickly say that you can't access one actor's attributes from another actor because actors only have tag refs to other actors. the ref is opaque, so even if the attribute (y in this case) is public it can't be accessed from another actor.
<aturley> i'm happy to talk more, but it will have to be on zulip.
<aturley> cheers!
<jarindyk2> yea have to be class apparently hmm
<jarindyk2> but if I add "val" next to String, I can still modify, hmm
<jarindyk2> works if I use let instead of var
<jarindyk2> but then I'm not sure of the context val applies to
<doublec> jarindyk2: In general think of using an actor as a means to serialise access to data or some process
<doublec> jarindyk2: so you can't access data directly, only through behaviours
<doublec> jarindyk2: can you clarify what you mean by adding val next to String?