On Monday, 12 March 2018 at 22:28:30 UTC, Xavier Bigand wrote:
I forgot to precise, that I don't have a main, because I am trying to create an opengl32.dll. This is why I already have a mixin to inject to function definitions in the root scope.
you have to pass the string as a template arg so make implementFunctionsOf a template:
string implementFunctionsOf(string mod)()
{
}
then mix it in somewhere you want:
mixin(implementFunctionOf!"std.stdio");
