Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

RTT default values #175

Closed
kripken opened this issue Jan 11, 2021 · 3 comments
Closed

RTT default values #175

kripken opened this issue Jan 11, 2021 · 3 comments

Comments

@kripken
Copy link
Member

kripken commented Jan 11, 2021

Do RTTs have default values? I can't find an answer in the docs, but maybe I missed it.

Seems like the default could be rtt.canon of that type. That's what I assumed in binaryen so far.

@jakobkummerow
Copy link
Contributor

My understanding is that RTTs are not defaultable, and that's one of the reasons why the let instruction is in this proposal -- can't use regular locals for RTTs.

Specifying rtt.canon to be the default might work, except when you want the RTT depth to be part of the static type.

@rossberg
Copy link
Member

As @jakobkummerow, they are not defaultable, similar to typed references.

@kripken
Copy link
Member Author

kripken commented Jan 13, 2021

I see, thanks. I'll update the binaryen implementation then.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants