Metaprogramming using eval and struct: BUG getting UndefVarError: not defined

Thanks for shedding light to the problem, how can I make mutable struct into global scope?