digitalmars.D.bugs - [Issue 11064] New: D should support block statements inside functions
- d-bugmail puremagic.com (36/36) Sep 18 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11064
http://d.puremagic.com/issues/show_bug.cgi?id=11064 Summary: D should support block statements inside functions Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: rswhite4 googlemail.com Code: ---- const { /// [1] int a = 3; } void main() { const { /// [2] int b = 4; } } ---- [1] is currently supported, but [2] not. I see no reason for this limitation. debug statements behave the same way: debug { /// debug code } So the same should also apply to const and immutable and maybe also for pure, nothrow etc. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 18 2013