CT-String as a Symbol

via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Apr 16 03:24:04 PDT 2015


On Wednesday, 15 April 2015 at 23:02:32 UTC, Ali Çehreli wrote:
>  struct I {
>                   alias T = size_t;
>                   this(T ix) { this._ix = ix; }
>                   T opCast(U : T)() const { return _ix; }
>                   private T _ix = 0;
>               }

How is this possible? Shouldn't it CT-evaluate to

     struct Index { ... }

!?


More information about the Digitalmars-d-learn mailing list