x-ref to a recent thread: Eval cannot be used in a generated function - #11 by schlichtanders. TL;DR: you probably shouldn’t use hasmethod
(or other functions depending on global state) in a generated function.
4 Likes