-
Notifications
You must be signed in to change notification settings - Fork 15
Describe the possible extension with function subtyping and exact types #33
Conversation
Thanks for this writeup, @rossberg! If I understand correctly, exact types are introduced to solve one of the problems that the Dispatch Tags pre-proposal solves as well. Would you be ok with adding a link to that pre-proposal in this new section so that readers are aware that there are multiple solutions in flight? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
A good follow-up to this would be a sketch of how one could define functions which can't be cast at all or can only be cast using generative/nominal type tags. |
Co-authored-by: Luke Wagner <[email protected]>
@tlively, AFAICS, there is no particular overlap with dispatch tags (which are more closely related to RTTs from the GC proposal). They would extend indirect calls with new functionality (a new call instruction), whereas this one is just about preserving the existing semantics of call_indirect in the presence of function subtyping. You would need to preserve that regardless of whether dispatch tags are added. |
Right. In conjunction with the GC proposal, that should be possible by introducing a new form of function definition that has an explicit RTT value. I created issue WebAssembly/gc#99. |
As discussed at some point in the past.