[Issue 10503] Octal enums don't work anymore
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jun 29 11:37:13 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10503
Henning Pohl <henning at still-hidden.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |henning at still-hidden.de
--- Comment #1 from Henning Pohl <henning at still-hidden.de> 2013-06-29 11:37:12 PDT ---
You need to execute octal by using parentheses:
import std.conv;
enum {
A = octal!"2000000"(),
B = octal!"4000"()
}
void main() {
}
As the compiler has mentioned, what you have actually been doing is passing
functions instead of their result when executed.
What you could possibly do to avoid these parentheses is using eponymous
templates.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list