[Issue 10097] New: __ctor, __dtor, and __postblit should no appear in user code
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu May 16 09:45:16 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10097
Summary: __ctor, __dtor, and __postblit should no appear in
user code
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2013-05-16 09:45:15 PDT ---
This code:
struct S {
this(int) {}
this(this) {}
~this() {}
}
pragma(msg, __traits(allMembers, S));
Would print:
tuple("__ctor", "__postblit", "__dtor", "__cpctor", "opAssign")
But, the identifiers which starts with double underscore are internal names.
I think __traits(allMembers) should not show such internal names.
--
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