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
When I try to define an empty generic function from within a macro using an escaped name I get a 'malformed expression' error. Doing exactly the same thing but with a function with an empty argument list works.
julia>macroBla()
fname =:myfun
:(function$(esc(fname)) end)
end@Bla (macro with 1 method)
julia>@Bla
ERROR: syntax: malformed expression
Stacktrace:
[1] top-level scope at REPL[8]:1
julia>macroBla()
fname =:myfun
:(function$(esc(fname))() end)
end@Bla (macro with 1 method)
julia>@Bla
myfun (generic function with 1 method)
The text was updated successfully, but these errors were encountered:
When I try to define an empty generic function from within a macro using an escaped name I get a 'malformed expression' error. Doing exactly the same thing but with a function with an empty argument list works.
The text was updated successfully, but these errors were encountered: