[Issue 10722] Regression (2.064 git-head): Cannot interpret struct at compile-time

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 12 18:31:46 PDT 2013


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



--- Comment #6 from Kenji Hara <k.hara.pg at gmail.com> 2013-09-12 18:31:45 PDT ---
(In reply to comment #5)
> (In reply to comment #4)
> > This has broken my library Orange, which is being integrated as
> > std.serialization.
> 
> Using .stringof is very unreliable (precisely because of these sort of changes,
> and since .stringof isn't really properly defined).
> 
> I suggest using __traits(identifier, Foo.tupleof[0]) instead.

Today stringof property merely prints the internal AST which its semantic
analysis has been done.
And of course internal AST format does not have any backward compatibility
beyond compiler releases.

(Note that compiler cannot determine the stringof property result before
semantic analysis, because the property could be overridden by user-defined
field.)

So the result format is not defined at all.

-- 
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