Improve the OOP ABI

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Tue Jan 23 00:00:18 UTC 2024


On 23/01/2024 12:52 PM, Walter Bright wrote:
> On 1/22/2024 2:50 PM, Richard (Rikki) Andrew Cattermole wrote:
>> That sounds an lot like an assumption that TypeInfo is unique in a 
>> process. Which may not be true.
>> If it was true, we could compare pointers and don't need any of this 
>> logic.
> 
> It isn't true because of shared libraries.

Or incremental compilation, the symbol could at least in theory be 
hidden in the object file and not be available for merging in the binary.

Regardless it can't be assumed if you like your sanity!


More information about the Digitalmars-d mailing list