-
Notifications
You must be signed in to change notification settings - Fork 58
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
Problem to use variable in module #810
Comments
This is probably the same as #790. Try putting the declaration inside the We should document this somewhere. |
Thank you so much. So it seems all fine by adding the function function __init__()
global bb = RR("1e-100")
nothing
end |
Glad it works! |
This was referenced May 6, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is strange crash shown by the following example.
First, we created a module file "ConstVar.jl"
Then another file to use it "test.jl"
We confronted the random crash (signal (11): Segmentation fault) on Linux version Julia1.3.1.
And we found it constantly crashes on MacOS version Julia1.3.0.
In the beginning we thought it is due to mistake in Julia grammar, but it works fine if we change to "bb = 1::Int64"
And here is the lengthy error message on Linux machine
The text was updated successfully, but these errors were encountered: