Static associative array expressions

Stefan Koch uplink.coder at googlemail.com
Sun Sep 19 05:54:44 UTC 2021


On Sunday, 19 September 2021 at 05:43:04 UTC, Stefan Koch wrote:
> [ .... ]
>
> This code now works on my computer ;)
> Yes this means the compiler has to be changed if we change the 
> runtime structure of the AA.
> And there is a tiny bit of code duplication, however I do think 
> that the parity of compile-time and run-time features is worth 
> it ...
>
> What do you guys think?

Draft PR: https://github.com/dlang/dmd/pull/13087/files
I plan on factoring the 3 stages out into separate functions.

I don't want this block of code be wedged in like the bitfields 
...
The `todt.d` (static initializer generation) is obtuse enough as 
it is.
It took me an entire day to get this working.




More information about the Digitalmars-d mailing list