Bug 1688 – "extern (C++) interface" and vtbl

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2007-11-23T10:56:00Z
Last change time
2015-06-09T01:31:14Z
Assigned to
bugzilla
Creator
niqbmozgvx

Comments

Comment #0 by niqbmozgvx — 2007-11-23T10:56:05Z
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.
Comment #1 by niqbmozgvx — 2007-11-23T11:08:02Z
*** This bug has been marked as a duplicate of 1687 ***