How give a module to a CTFE function

Nicholas Wilson iamthewilsonator at hotmail.com
Tue Mar 13 01:01:45 UTC 2018


On Monday, 12 March 2018 at 22:24:15 UTC, Xavier Bigand wrote:
> mixin(implementFunctionsOf("derelict.opengl3.functions"));
>
>
> As string I get the following error:
> ..\src\api_entry.d(16): Error: variable `mod` cannot be read at 
> compile time
> ..\src\api_entry.d(48):        called from here: 
> `implementFunctionsOf("derelict.opengl3.functions")`
>
> I also tried to make implementFunctionsOf a mixin template.

make the argument to implementFunctionsOf a template arg.


More information about the Digitalmars-d-learn mailing list