How give a module to a CTFE function
arturg
var.spool.mail700 at gmail.com
Mon Mar 12 23:00:00 UTC 2018
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");
More information about the Digitalmars-d-learn
mailing list