Metaprogramming with traits

Ram_B via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Sep 16 15:10:44 PDT 2016


On Friday, 16 September 2016 at 08:01:18 UTC, Gary Willoughby 
wrote:
> On Thursday, 15 September 2016 at 22:05:55 UTC, Ram_B wrote:
>> test.d(33): Error: variable f cannot be read at compile time
>> test.d(33): Error: string expected as second argument of 
>> __traits hasMember instead of __error
>> test.d(46): Error: template instance test.A.t!(B) error 
>> instantiating
>
> Maybe Array!(string) can't be use in compile-time code?

Which type of array i may use to pass it to compile-time function?


More information about the Digitalmars-d-learn mailing list