Should this always work?
Paul Backus
snarwin at gmail.com
Tue May 4 13:21:22 UTC 2021
On Tuesday, 4 May 2021 at 10:21:42 UTC, Ola Fosheim Grøstad wrote:
> On Saturday, 1 May 2021 at 16:06:05 UTC, Steven Schveighoffer
> wrote:
>> An interface cast involves a thunk (constant pointer
>> adjustment) to get to the interface/object
>
> Yes, but it isn't a https://en.wikipedia.org/wiki/Thunk ?
The article literally gives this exact use-case as an example:
https://en.wikipedia.org/wiki/Thunk#Object-oriented_programming
More information about the Digitalmars-d-learn
mailing list