Skip to content
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

New foreign syntax #1052

Open
ospencer opened this issue Dec 7, 2021 · 0 comments · May be fixed by #1873
Open

New foreign syntax #1052

ospencer opened this issue Dec 7, 2021 · 0 comments · May be fixed by #1873
Assignees
Labels

Comments

@ospencer
Copy link
Member

ospencer commented Dec 7, 2021

This work likely won't be done until our module system rewrite. This is what declaring foreign values would look like:

@externalName("wasi_unstable")
foreign module WasiUnstable {
  @externalName("fd_write")
  let fdWrite: annotation
  ...
}

In the future when toplevel wasm imports exist, they would use the toplevel foreign keyword, similar to how it is done now.

@phated phated moved this to Todo in Grain v0.6.0 Nov 5, 2022
@alex-snezhko alex-snezhko linked a pull request Jun 26, 2023 that will close this issue
@phated phated moved this from Todo to In Progress in Grain v0.6.0 Jun 26, 2023
@phated phated moved this from In Progress to Todo in Grain v0.6.0 Jun 26, 2023
@phated phated moved this from Todo to In Progress in Grain v0.6.0 Jun 26, 2023
@phated phated removed this from Grain v0.6.0 Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants