You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia> macro test(a)
quote
immutable $(esc((symbol(a))))
x::Int
end
end
end
julia>
julia> @test "a1"
julia> a1
a1 (constructor with 1 method)
julia> macro test(a)
quote
immutable $(esc((symbol(a))))
x::Int
end
ccall( (:clock, "libc"), Int32, ())
end
end
julia> @test "a2"
ERROR: error compiling anonymous: type definition not allowed inside a local scope
julia>
Is this expected behaviour? Workaround is to wrap the ccall in an eval.
The text was updated successfully, but these errors were encountered:
Is this expected behaviour? Workaround is to wrap the ccall in an eval.
The text was updated successfully, but these errors were encountered: