Stream: wasm

Topic: components: core types inside module types


view this post on Zulip fitzgen (he/him) (Feb 07 2022 at 19:10):

So a moduletype is a sequence of moduletype-defs and a moduletype-def is either a core type definition, an import, or an export. does this mean that the imports/exports moduletype-defs can only reference core function types that are also defined inside the same moduletype? that is, each moduletype has its own index space?

cc @Luke Wagner @Luke Wagner @Peter Huene @Dan Gohman

view this post on Zulip Peter Huene (Feb 07 2022 at 19:11):

Yes, both module types and component types have their own index spaces.

view this post on Zulip Peter Huene (Feb 07 2022 at 19:11):

And in the case of module types, they can only reference the func types declared within themselves

view this post on Zulip fitzgen (he/him) (Feb 07 2022 at 19:12):

great, thanks!

view this post on Zulip Luke Wagner (Feb 07 2022 at 19:27):

+1

view this post on Zulip fitzgen (he/him) (Feb 07 2022 at 22:42):

and component imports can only reference instance types within their own index space as well?


Last updated: Nov 22 2024 at 17:03 UTC