-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import dict rather than sequence? e.g. Instance(store, module, {"env": Memory(store, MemoryType(Limits(5, 5)))}) #240
Comments
Yeah for this it's recommended to use |
Thanks Alex. I see. Previously my understanding is that for |
Ah yes you can also use |
Hi Alex. Thanks for your reply. I will take a look at it. I have a follow up question regarding import. I want to import a function with no input parameters. However the code below seems to indicate that the input parameters cannot be none. And The ValType doesn't seem to have a "None" type either. Thanks!
|
You should be able to pass an empty list since that's the types of the arguments, would that work for you? |
Why is the import in Instance defined as "imports: Sequence[AsExtern]" rather than a dict? So instead of having (import "" "hello") in hello.wat, I can have (import "env" "hello"). This would make the import more organized.
(Although linker make use of that first slot in the import, in my understanding it's more like for linking two .wat file files, rather than organizing the imports? Or am I just not understanding how linker works. Please let me know :) )
Thanks!
The text was updated successfully, but these errors were encountered: