Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
September 13, 2013 [Issue 11036] New: Document that .stringof should not be used for code generation | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=11036 Summary: Document that .stringof should not be used for code generation Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: pull Severity: normal Priority: P2 Component: websites AssignedTo: andrej.mitrovich@gmail.com ReportedBy: andrej.mitrovich@gmail.com --- Comment #0 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-09-13 14:57:03 PDT --- As the .stringof representation often changes between compiler versions, it is not suitable for code generation because it is unreliable. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
September 13, 2013 [Issue 11036] Document that .stringof should not be used for code generation | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=11036 --- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-09-13 15:09:02 PDT --- https://github.com/D-Programming-Language/dlang.org/pull/380 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
September 14, 2013 [Issue 11036] Document that .stringof should not be used for code generation | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=11036 Peter Alexander <peter.alexander.au@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |peter.alexander.au@gmail.co | |m --- Comment #2 from Peter Alexander <peter.alexander.au@gmail.com> 2013-09-14 13:45:09 PDT --- (In reply to comment #0) > As the .stringof representation often changes between compiler versions, it is not suitable for code generation because it is unreliable. Wouldn't a better solution be to define exactly what .stringof should return? Implementation-defined semantics should be avoided where possible since it breaks portability. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
September 14, 2013 [Issue 11036] Document that .stringof should not be used for code generation | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=11036 --- Comment #3 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-09-14 13:51:20 PDT --- (In reply to comment #2) > (In reply to comment #0) > > As the .stringof representation often changes between compiler versions, it is not suitable for code generation because it is unreliable. > > Wouldn't a better solution be to define exactly what .stringof should return? Implementation-defined semantics should be avoided where possible since it breaks portability. See Kenji's comment here: http://d.puremagic.com/issues/show_bug.cgi?id=10722#c6 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
September 14, 2013 [Issue 11036] Document that .stringof should not be used for code generation | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=11036 --- Comment #4 from Peter Alexander <peter.alexander.au@gmail.com> 2013-09-14 14:43:06 PDT --- (In reply to comment #3) > (In reply to comment #2) > > (In reply to comment #0) > > > As the .stringof representation often changes between compiler versions, it is not suitable for code generation because it is unreliable. > > > > Wouldn't a better solution be to define exactly what .stringof should return? Implementation-defined semantics should be avoided where possible since it breaks portability. > > See Kenji's comment here: http://d.puremagic.com/issues/show_bug.cgi?id=10722#c6 I can't see anything in Kenji's comment that suggests it couldn't be properly defined? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
September 16, 2013 [Issue 11036] Document that .stringof should not be used for code generation | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=11036 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-09-16 08:25:30 PDT --- Copied from 11035 which the pull erroneously referenced. (In reply to comment #1) > Commits pushed to master at https://github.com/D-Programming-Language/dlang.org > > https://github.com/D-Programming-Language/dlang.org/commit/30a0c704107274ce6d73a532283fae19d4c8f796 Fixes Issue 11035 - Document lack of .stringof reliability. > > https://github.com/D-Programming-Language/dlang.org/commit/4cc00e0fe397334cc13e6f904b339ac8bf2a7cad Merge pull request #380 from AndrejMitrovic/Fix11036 > > Issue 11035 - Document lack of .stringof reliability. -- 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