<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