On 5/4/21 9:21 AM, Paul Backus wrote:
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
Yeah, I wasn't aware of the more general usage, I thought it was always
a pointer adjustment. But I also am not steeped in the terminology, just
parroting what I've heard.
-Steve