www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11036] New: Document that .stringof should not be used for code generation

reply d-bugmail puremagic.com writes:
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



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: -------
Sep 13 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11036




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: -------
Sep 13 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
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



13:45:09 PDT ---

 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: -------
Sep 14 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11036




13:51:20 PDT ---


 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: -------
Sep 14 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11036




14:43:06 PDT ---



 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: -------
Sep 14 2013
prev sibling parent d-bugmail puremagic.com writes:
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



08:25:30 PDT ---
Copied from 11035 which the pull erroneously referenced.


 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

 
 Issue 11035 - Document lack of .stringof reliability.
-- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 16 2013