Re: @ctfeonly

2017-12-06 Thread Nicholas Wilson via Digitalmars-d-announce
On Thursday, 7 December 2017 at 01:18:04 UTC, 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

@ctfeonly

2017-12-06 Thread Nicholas Wilson via Digitalmars-d-announce
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