Accessing members through pointers to structs (also, CTFE associative arrays)

Stefan Koch via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Dec 15 17:30:46 PST 2016


On Thursday, 15 December 2016 at 19:30:08 UTC, Ali Çehreli wrote:

> Yeah, I think the compiler is confused because the function is 
> called in a non-const context during the initialization of an 
> immutable object.
>
> I would open an issue:
>
>   https://issues.dlang.org/enter_bug.cgi?product=D
>
> Ali

You cannot Assign Associative Arrays at compile-time.
Because those are defined by druntime have no stable ABI.


More information about the Digitalmars-d-learn mailing list