[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:51:21 PDT 2013


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



--- Comment #3 from Andrej Mitrovic <andrej.mitrovich at 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: -------


More information about the Digitalmars-d-bugs mailing list