-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Scope issue with @static #17584
Comments
Dup of #2586 |
@yuyichao Why is |
The at-static here is redundant and unnecessary (actually, it's pretty rare to need it) |
It's an intrinsic |
@vtjnash I think I have to use module A
@static if true
immutable T end
const B = cglobal((:ompi_mpi_wchar, :libmpi))
end
end and module A
immutable T end
const B = cglobal((:ompi_mpi_wchar, :libmpi))
end would be equivalent. Wouldn't that be desirable? |
Sure, but note that the definition of |
Yes. But more fundamentally a |
I'm seeing some weird interaction between
cglobal
andimmutable
inside@static
.These two are okay
but
The text was updated successfully, but these errors were encountered: