[Issue 9588] format prints context pointer for struct

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 26 19:01:57 PST 2013


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



--- Comment #3 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-02-26 19:01:50 PST ---
(In reply to comment #2)
> Is there a way to tell whether a field is the hidden context pointer? Does it
> have a specific name (that isn't compiler-dependent)?

None that I know of, but it appears it's always the last member (at least in
DMD).

When we get the isNested[1] trait pulled we could simply do a test on the
aggregate and just ignore the last field when writing its contents.

[1]: https://github.com/D-Programming-Language/dmd/pull/1362

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