Replies: 2 comments 2 replies
-
reason in Nim importing system. Wrong
# public variable
var x*: int = 0
import a
echo x
import b # expected output is 0, but got error Right Way
# public variable
var x*: int = 0
import a
echo x
import a
import b # expected output is 0 - success! Another Way
# public variable
var x*: int = 0
echo x # no error lol
import a
import b # expected output is 0, but got error |
Beta Was this translation helpful? Give feedback.
0 replies
-
So you should import ALL files of your project into |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been refactoring my code, for translatable I moved it to a separate file
translations.nim
, but I gotError: undeclared identifier: 'translates
, here is my codetranslations.nim
index.nim
Error message
Beta Was this translation helpful? Give feedback.
All reactions