using memset withing a pure function

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Aug 14 20:47:50 PDT 2015


On Saturday, 15 August 2015 at 02:21:46 UTC, D_Learner wrote:
> Well, the actual error I got is :  Error: memset cannot be 
> interpreted at compile time, because it has no available source 
> code . I seems to suggest I miss the actual code.

yeah, ctfe is different than pure functions. That's where the 
compiler interprets the code inside the compiler.

The slice syntax might work there though. Try changing them to 
that.


More information about the Digitalmars-d-learn mailing list