AA literals/initialisation

Daniel Murphy yebbliesnospam at gmail.com
Sun Jan 12 06:30:40 PST 2014


"Jakob Ovrum"  wrote in message news:whwxxduozvqjrcldmggt at forum.dlang.org...
> Alright, that looks more short-term viable than Stepanov's approach. I 
> don't think I'm overplaying the issue though - it is a tall order to ask 
> for compile-time construction of AAs that are then usable at runtime, and 
> it's not fair to present them as a fundamental feature, or their absence 
> as a bug, because it's not like other languages have anything near this 
> kind of power.

This used to be true, but now we can pass heap-allocated structs and classes 
from compile-time to run-time.  The fact we can't do the same for AAs is an 
embarrassing limitation.

It would have happened years ago if AAs weren't such a mess. 



More information about the Digitalmars-d mailing list