www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1688] New: "extern (C++) interface" and vtbl

reply d-bugmail puremagic.com writes:
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. --
Nov 23 2007
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1688


niqbmozgvx mailinator.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE







*** This bug has been marked as a duplicate of 1687 ***


-- 
Nov 23 2007