-
-
Notifications
You must be signed in to change notification settings - Fork 610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[REG2.063a] Issue 10096 - __traits(allMembers) triggers out of bounds error #2043
Conversation
Internal member names should not be listed in __traits(allMembers) - Names starting double underscore does not appear its result. __cpctor, __invariant, __xopEquals, __fieldPostBlit, __aggrPostBlit, __fieldDtor, __aggrDtor, and others... - Except __ctor, __dtor, and __postblit. They are already used in Phobos, so temporary keep them for backward compatibility.
|
"By the way question". For nested classes __traits(allMember) doesn't show "outer" pseudo-field. Why? Yes, this field automatically adding by compiler. but this is real field with offset value, for example. May be we need to add this field to __traits(allMember) result for nested classes? |
|
About "__ctor": Do this name is documented and considered standart? I'm working under runtime reflections extension for druntime now, and I must know: Can I use |
|
Because dmd does not map |
|
I think |
Is there another way to access to constructor/destrucor functions? And not simple access, but finding all overloads with __traits(getOverloads, Foo, "XXX"). Mat be we can use We can allow next syntax:
outer field looks like field. We can get offset of it, pass by ref to function and get pointer of it. |
|
LGTM. |
|
Can't we disable this test at least for freebsd: It's really wasting so much time for us.. |
|
It happens most often on freebsd, true, but it does happen on other I'm rather against disabling it. If it bothers you, and it should, then On 5/16/13 1:14 PM, Andrej Mitrovic wrote:
|
|
Someone who knows their way around Posix and concurrency (ideally the implementer) should work on it. I know very little about the two or I'd jump in with both hands. |
|
What is a cause of this fall? What code |
|
Interestingly, the thread priority issue has also started to occur on my Linux box recently, when I was running some rather unrelated test case in the bugger. Haven't had time to investigate it more closely, though – it still seems to occur highly non-deterministically. |
|
May be we need to add more debug print in error point? I think, we need to know returned value of |
[REG2.063a] Issue 10096 - __traits(allMembers) triggers out of bounds error
|
This caused a regression. |
http://d.puremagic.com/issues/show_bug.cgi?id=10096
Do not list internal members in
__traits(allMembers)Now,
__cpctor,__invariant,__xopEquals,__fieldPostBlit,__aggrPostBlit,__fieldDtor,__aggrDtor, and others are not listed in there.__ctor,__dtor, and__postblit. They are already used in Phobos, so temporary keep them for backward compatibility.