[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 14:43:06 PDT 2013


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



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


More information about the Digitalmars-d-bugs mailing list