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
The argument to @SVector is evaluated at macro expansion time. And that is necessary to have the size available at compilation time. So I don't think there is much to be done here, except better documentation maybe. E.g. try
tmp2=[1,2]
functiong()
@SVector [1for i in1:length(tmp2)]
end
tmp2="Hello world!"g()
This works
but this does not work
The problem is the following line in the macros will not access non global scope variables.
The text was updated successfully, but these errors were encountered: