It looks like Julia v0.6 broke some functionality which I would like to recover.
Suppose I have the macro, struct and function:
macro juliadots(expr::Expr)
expr = :(print_with_color(:red, " ●");
print_with_color(:green, "●");
print_with_color(:blue, "● ");
print_with_color(:bold, $expr))
return expr
end
struct Foo
x::String
end
function func(foo)
@juliadots "$(foo.x)\n"
end
myfoo = Foo("hello")
func(myfoo)
This used to work, but now I get the error:
ERROR: UndefVarError: myfoo not defined
How can I recover this functionality in Julia v0.6?