Channel 9 interview with Scott Meyers, Herb Sutter, and yours truly

Paulo Pinto pjmlp at progtools.org
Thu Aug 25 03:16:18 PDT 2011


"Andrej Mitrovic" <andrej.mitrovich at gmail.com> wrote in message 
news:mailman.2507.1314238444.14074.digitalmars-d at puremagic.com...
> Anyway, interesting times ahead with D and C++. Did they do any work
> at all regarding the ABI for C++11? Like define it properly for
> interoperability with other languages?

This is not possible to do properly. For 64bit there is one ABI defined,
which was based on Intel's Itanium ABI, but it only concerns C++.

It is not possible to properly define a C++ ABI that can be used across
languages with multiple concepts. The only reason that C suceedes here
is because it is usually the OS ABI and as an high level assembler, most
languages can easily map C's concepts and they need anyway to make
use of the OS APIs.

With C++ is a different story, or with any other language that compiles
to native code, even D. You would need to think of ways how to expose
language specific concepts, or limit what can be made part of the ABI
like .Net does with the CLS specification.

--
Paulo 




More information about the Digitalmars-d mailing list