[Issue 11036] Document that .stringof should not be used for code generation

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Sep 14 13:45:11 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=11036


Peter Alexander <peter.alexander.au at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |peter.alexander.au at gmail.co
                   |                            |m


--- Comment #2 from Peter Alexander <peter.alexander.au at 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: -------


More information about the Digitalmars-d-bugs mailing list