https://d.puremagic.com/issues/show_bug.cgi?id=199
yebblies <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull CC| |[email protected] Platform|x86 |All AssignedTo|[email protected] |[email protected] OS/Version|Windows |All --- Comment #34 from yebblies <[email protected]> 2013-12-25 17:55:30 EST --- The 9th commandment settles this IMO: "Where D code looks the same as C code, have it either behave the same or issue an error." Compiles without error, but fails in D. ============== int i = 1; void main() { label: { int i = 2; } assert(i == 1); } ============== I've been porting a fairly large C++ codebase to D (the D frontend) and this seems to be a fairly pointless gotcha. https://github.com/D-Programming-Language/dmd/pull/3024 -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
