On 15.03.2012 12:52, Timon Gehr wrote:
On 03/15/2012 09:40 AM, Dmitry Olshansky wrote:
On 15.03.2012 2:44, Jakob Bornecrantz wrote:
Not true, as Steven said a opaque pImpl implementation would
work, most modern C library design follow this principle with
only using opaque except for pointers. This is because the ABI
will then only require you call a certain set of functions (that
can be extended to) not what that pointers points to, the
details can be completely hidden.


Trouble is when one dynamic lib uses one version of druntime and AA, and
your app another one. Guess what happens with this opaque pointer?



AA should probably be a class with virtual methods.

If its V-table layout is consistent and fixed in say ABI spec, it could work.

--
Dmitry Olshansky

Reply via email to