July 26, 2012 Simple D Questions | ||||
---|---|---|---|---|
| ||||
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. |
July 26, 2012 Re: Simple D Questions | ||||
---|---|---|---|---|
| ||||
Posted in reply to Wes | Moved my post to D.learn... send replies there. http://forum.dlang.org/thread/idtozolptpwymkcekzhj@forum.dlang.org#post-idtozolptpwymkcekzhj:40forum.dlang.org |
Copyright © 1999-2021 by the D Language Foundation