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

create std::prelude, reexport Context, and include in module #679

Closed
g-r-a-n-t opened this issue Feb 27, 2022 · 0 comments · Fixed by #779
Closed

create std::prelude, reexport Context, and include in module #679

g-r-a-n-t opened this issue Feb 27, 2022 · 0 comments · Fixed by #779

Comments

@g-r-a-n-t
Copy link
Member

What is wrong?

There should be a prelude module in the standard library that reexports things like std::context::Context.

i.e.

# std/src/prelude.fe

pub use `ingot::context::Context`
...

The items in this module should be included in every module.

How can it be fixed

I'm not sure on the best approach here. Either we programmatically include the items in analysis or add a use std::prelude::* to the AST of every module before analysis.

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

Successfully merging a pull request may close this issue.

1 participant