rdmd

Georg Wrede georg.wrede at iki.fi
Wed Mar 4 14:37:08 PST 2009


A suggestion: make the --eval temporary source file nicer looking:

46c46,47
<     std.zlib;";
---
 >     std.zlib;
 > """;
121,122c122,123
<         return .eval(importWorld ~ "void main(string[] args) { "
<             ~ "foreach (line; stdin.byLine()) { " ~ eval ~ "; } }");
---
 >         return .eval(importWorld ~ "void main(string[] args)\n{\n"
 >             ~ "foreach (line; stdin.byLine()) { " ~ eval ~ ";\n}\n");
126,127c127,128
<         return .eval(importWorld ~ "void main(string[] args) { "
<                 ~ eval ~ "; }");
---
 >         return .eval(importWorld ~ "void main(string[] args)\n{\n"
 >                 ~ eval ~ ";\n}\n");


This helps debugging by putting the "user code" properly on its own lines.




More information about the Digitalmars-d-announce mailing list