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
jemc has quit [Ping timeout: 268 seconds]
TwoNotes has quit [Quit: Leaving.]
amclain has quit [Quit: Leaving]
_andre has joined #ponylang
zevlg has joined #ponylang
Praetonus has joined #ponylang
jemc has joined #ponylang
Praetonus has quit [Quit: Leaving]
TwoNotes has joined #ponylang
<TwoNotes> 'this' in an actor behavior seems to be a 'ref'. How do I get the 'tag' capability of the current actor?
<jemc> a capability can always be downgraded implicitly - that is, a `ref` can be used wherever a `tag` is expected
<jemc> however, if you need to be explicit for some reason, you could do something like this:
<jemc> `let this_tag: MyActor tag = this`
<jemc> however, I'm having trouble imagining a situation where you need to be that explicit - if you give more info on what you're trying to do I can probably give you a more idiomatic answer
Matthias247 has joined #ponylang
<TwoNotes> Trying to put the actor tag into the field of a class object
<TwoNotes> object.session = this
<TwoNotes> The field is declared as an 'interface' name. Maybe I should add 'tag' there
<TwoNotes> ver session: HttpSession
<TwoNotes> Compler says "not safe to write right side to left side
<TwoNotes> The 'this' actor does implement the required interface, but also has additional methods
<TwoNotes> "Right side type: _ServerConnection ref"
<TwoNotes> I have actor _ServerConnection is HttpSession
<TwoNotes> Putting in the 'let this_tag' conversion does work, but looks kind of clunky
amclain has joined #ponylang
<jemc> TwoNotes: can you paste the snippet and the full error output (in a gist or similar)
Praetonus has joined #ponylang
kulibali has joined #ponylang
_andre has quit [Quit: leaving]
<SeanTAllen> jemc: unfortunately looks like back pressure is not working
<jemc> :/