Is it possible to add items to the arrays and hashes at compile time?
Dennis Ritchie via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Jun 7 05:30:11 PDT 2015
Does D the ability to add items to arrays and hashes at compile
time?
For example, how do I do it in compile time?:
int[][int][int] hash;
hash[4][6] ~= [34, 65];
hash[5][7] ~= [4, 78, 21];
More information about the Digitalmars-d-learn
mailing list