Replacing AA's in druntime

Timon Gehr timon.gehr at gmx.ch
Thu Mar 15 01:52:41 PDT 2012


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.


More information about the Digitalmars-d mailing list