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

Resolve native references later to avoid import order problems? #12

Open
avh4 opened this issue Jul 15, 2017 · 1 comment
Open

Resolve native references later to avoid import order problems? #12

avh4 opened this issue Jul 15, 2017 · 1 comment

Comments

@avh4
Copy link
Owner

avh4 commented Jul 15, 2017

Moved here from #11 via @rogeriochaves

It would be much better if we could not depend on loading order, with a solution like this: https://github.com/elm-community/webgl/pull/14/files

But idk if this will work for elm-testable, what do you think? Any ideas?

@avh4
Copy link
Owner Author

avh4 commented Jul 15, 2017

I'm thinking this probably won't work because we need to overwrite those variables, not just read them; and also because we need to overwrite them before any actual code runs. Though maybe we could do this in TestContext.start?

It's probably worth experimenting with, though.

Also, note that I believe native-to-native references are changing in 0.19, so probably not worth investigating this we update for Elm 0.19.

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