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

working with foreign types #41

Closed
scolsen opened this issue Dec 13, 2022 · 1 comment
Closed

working with foreign types #41

scolsen opened this issue Dec 13, 2022 · 1 comment

Comments

@scolsen
Copy link
Contributor

scolsen commented Dec 13, 2022

Is there support in Austral yet for using external types defined in C and including C libraries?

e.g. I'd like to do something like:

module IO.File is

  extern type FILE;

  function fopen(): FILE;

end module.

Where the resulting C would produce the name FILE as-is, and ideally there'd be some way to include a C header like stdio in the output.

@scolsen
Copy link
Contributor Author

scolsen commented Dec 13, 2022

Whoops, opened in the wrong repo, closing in favor of austral/austral#338

@scolsen scolsen closed this as completed Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant