Generated functions cannot call any function which might have a method
added after the generated function is defined. This means we need to
hoist such functions outside the generator, either by calling them
beforehand (as we do with axistrait), or ensuring that all methods are
defined before the generator (axisdim).
I belive this fixes #161 (test failures with precompiled-modules=no).
TODO
[x] Check that the compiler is happy with the way I've hoisted axistrait() out of the generated function here.
Generated functions cannot call any function which might have a method added after the generated function is defined. This means we need to hoist such functions outside the generator, either by calling them beforehand (as we do with axistrait), or ensuring that all methods are defined before the generator (axisdim).
I belive this fixes #161 (test failures with precompiled-modules=no).
TODO
axistrait()
out of the generated function here.