April 06, 2009 [Issue 1577] static assert for testing char with char is not evaluatable | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=1577 clugdbug@yahoo.com.au changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Comment #1 from clugdbug@yahoo.com.au 2009-04-06 02:03 ------- The behaviour is correct. 'result' is not a compile-time constant. In D1, the following code works: const char[] result=`1234123`; static assert(result[0]=='1'); -- |
Copyright © 1999-2021 by the D Language Foundation