November 23, 2007 [Issue 1688] New: "extern (C++) interface" and vtbl | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=1688 Summary: "extern (C++) interface" and vtbl Product: D Version: unspecified Platform: PC OS/Version: Windows Status: NEW Severity: normal Priority: P3 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: niqbmozgvx@mailinator.com cpp_interface.html: > a D interface with the attribute of extern (C++) will have a virtual function > pointer table (vtbl[]) that exactly matches C++'s [...] in C++ the first > entry points to the first virtual function. extern (C++) interface A { void foo(); void bar(); } A a = ...; So calling a.foo() should call vtbl[0], instead D calls vtbl[1] as if it where a normal D interface. -- |
November 23, 2007 [Issue 1688] "extern (C++) interface" and vtbl | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1688 niqbmozgvx@mailinator.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE ------- Comment #1 from niqbmozgvx@mailinator.com 2007-11-23 11:08 ------- *** This bug has been marked as a duplicate of 1687 *** -- |
Copyright © 1999-2021 by the D Language Foundation