Simple D Questions (static if / #pragma / int[3][3])

Wes ffhighwind at hotmail.com
Thu Jul 26 04:22:45 PDT 2012


1. Is int[3,3] the same in memory as int[3][3]?
I can't really tell based on the description.
http://dlang.org/arrays.html

2. Is there a command such as #error or #warning in D?
I assume this is maybe #pragma (msg, "error message") static
assert(0);?

3. Can you use static if() {} with the {} block?
None of the examples had it. I know it's because of scope
issues... but I'd hate to have to write static if(x) 5 times in a
row for 5 variables.


More information about the Digitalmars-d-learn mailing list