UndefVarError although I have defined it in the function before using it

Happy to help. When code involving macros in general acts strangely give @macroexpand a shot:

julia> @macroexpand @. du = some(stuff[going].on)
:(du .= some.((stuff[going]).on))
5 Likes