[Issue 10096] Regression (git-head): __traits(allMembers) triggers out of bounds error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 16 10:27:21 PDT 2013


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



--- Comment #3 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-05-16 10:27:20 PDT ---
(In reply to comment #2)
> https://github.com/D-Programming-Language/dmd/pull/2043
> 
> By fixing bug 3789, currently compiler generates static member function
> __xopEquals for S and its TypeInfo.
> My compiler change would remove such internal names from the result of
> __traits(allMembers).

Ok. Btw, the documentation for allMembers trait states:

"Builtin properties are not included."

And it lists __ctor, __dtor *if* they're user-defined (__ctor is not shown if a
user doesn't write a constructor). 

So I partially think Issue 10097 might be unnecessary, __xopEquals is internal,
but __ctor is not since it's only shown if it's user-defined.

Still, I would like to see Issue 10097 fixed, but I'm afraid we might break a
lot of code?

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