__traits getMember is context sensetive?

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jun 14 04:00:07 PDT 2015


On Sun, 14 Jun 2015 10:29:08 +0000, anonymous wrote:

> One important thing I didn't see stated clearly by anyone in here:
> 
> CTFE may run at compile time but it follows the same rules as run time
> evaluation (plus some restrictions).
> 
> This means, you can't use dynamic values (e.g. function parameters) in
> static contexts (e.g. __traits).

yes, i managed to write a wall of text escaping to talk about the main 
issue of the thread. ;-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20150614/c56caa9b/attachment.sig>


More information about the Digitalmars-d-learn mailing list