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

replace all imports by relative imports to avoid conflicts #22

Open
timotheecour opened this issue Feb 1, 2019 · 0 comments
Open

replace all imports by relative imports to avoid conflicts #22

timotheecour opened this issue Feb 1, 2019 · 0 comments

Comments

@timotheecour
Copy link
Contributor

timotheecour commented Feb 1, 2019

replace all imports by relative imports to avoid conflicts, eg in case multiple versions of wrappers are installed

proposal 1

robust but annoying as you need to compute relative paths for each import

import wrapperspkg/foo
=>
import "../../" / wrapperspkg/foo

proposal 2

implement support in Nim for:

import wrapperspkg/foo
=>
import root/wrapperspkg/foo # root of nimble pkg containing this file

which extends the existing special syntax import pkg/foo/bar

alternative names:
tpkg (ie: this pkg)

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