[Issue 6893] Write of enum member represented with ubyte or ulong

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 22 17:46:00 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=6893



--- Comment #5 from hsteoh at quickfur.ath.cx 2013-08-22 17:45:59 PDT ---
Aha! I found the reason: getNthInt is called from a *compile-time* check, so
even if the spec for enum is "%s", the compiler still has to compile this
branch of the code. So the fix is for getNthInt to *statically* verify
convertibility to int before attempting to call to!int.

-- 
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