Date: Thu, 07 Nov 2024 10:15:24 -0800
On Thursday 7 November 2024 05:46:23 Pacific Standard Time Lauri Vasama via
Std-Proposals wrote:
> What if the types remain the same but their meaning changes?
>
> Let's say you have a hash table where the capacity is stored in size_t.
> Later the implementation is changed such that that same size_t stores
> capacity - 1, i.e. a bitmask used for fast modulo when the capacity is
> always a power of two. In this case the hash would not change, but ABI
> compatibility is still broken.
Or, the dual scenario: the meanings have not changed but the names have,
because someone applied refactoring to the source code.
Std-Proposals wrote:
> What if the types remain the same but their meaning changes?
>
> Let's say you have a hash table where the capacity is stored in size_t.
> Later the implementation is changed such that that same size_t stores
> capacity - 1, i.e. a bitmask used for fast modulo when the capacity is
> always a power of two. In this case the hash would not change, but ABI
> compatibility is still broken.
Or, the dual scenario: the meanings have not changed but the names have,
because someone applied refactoring to the source code.
-- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Principal Engineer - Intel DCAI Platform & System Engineering
Received on 2024-11-07 18:15:33