Thread overview | |||||
---|---|---|---|---|---|
|
March 03, 2013 [Issue 9640] New: Add #line overload to restore natural line numbering / module name | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=9640 Summary: Add #line overload to restore natural line numbering / module name Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: minor Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: m.strashun@gmail.com --- Comment #0 from Dicebot <m.strashun@gmail.com> 2013-03-03 05:46:16 PST --- #line is a pretty convenient tool to get better errors from string mixin's. Typical code that uses it looks like this: --- 100 #line 1 "mixin name" 101 mixin(generateSomeBigCode()); 102 #line 102 "module name" --- It works, but every time some new code is added above, line numbering will break again and there is no way to verify this from compiler. I suggest to add parameter-less #line that will restore natural line order and module name. Something like this: --- 100 #line 1 "mixin name" 101 mixin(generateSomeBigCode()); 102 #line --- That will help quite a lot in generic code maintenance. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 29, 2013 [Issue 9640] Add #line overload to restore natural line numbering / module name | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dicebot | http://d.puremagic.com/issues/show_bug.cgi?id=9640 Henning Pohl <henning@still-hidden.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull CC| |henning@still-hidden.de --- Comment #1 from Henning Pohl <henning@still-hidden.de> 2013-08-29 14:37:48 PDT --- https://github.com/D-Programming-Language/dmd/pull/2506 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 30, 2013 [Issue 9640] Add #line overload to restore natural line numbering / module name | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dicebot | http://d.puremagic.com/issues/show_bug.cgi?id=9640 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |yebblies@gmail.com Severity|minor |enhancement -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation