Should this always work?

Mike Parker aldacron at gmail.com
Tue May 4 13:52:13 UTC 2021


On Tuesday, 4 May 2021 at 01:20:15 UTC, Q. Schroll wrote:
> On Saturday, 1 May 2021 at 06:17:36 UTC, Mike Parker wrote:
>>
>> No. An interface is like a pointer to a pointer.
>
> Can you elaborate on this one? I don't really get it. Is an 
> object handle also like a pointer to a pointer? (I feel like I 
> can learn something here.)

So I have no deep knowledge of the implementation details. I only 
know that a class reference is a pointer under the hood, so it 
can be cast to `void*` and back, and that an interface reference 
has an extra level of indirection, so it can go to `void**` and 
back.


More information about the Digitalmars-d-learn mailing list