@ctfeonly

Walter Bright newshound2 at digitalmars.com
Thu Dec 7 09:34:51 UTC 2017


On 12/6/2017 5:21 PM, Nicholas Wilson wrote:
> I'd like to add an attribute to indicate that the annotated function is only 
> available at compile time so that in cases where the operation is invalid at 
> runtime (strings and concatenation on a GPU for instance) but the result is only 
> used at compile time (for a mixin) the compiler is free to not codegen that 
> function.

Put these functions into a separate import. Then import the file and use the 
functions at compile time. They will not have code generated for them.


More information about the Digitalmars-d mailing list