Should this always work?

Q. Schroll qs.il.paperinik at gmail.com
Tue May 4 01:20:15 UTC 2021


On Saturday, 1 May 2021 at 06:17:36 UTC, Mike Parker wrote:
> On Saturday, 1 May 2021 at 04:55:10 UTC, frame wrote:
>> I always thought as long as an object implements an interface, 
>> it should be able to cast it from a void* if it really points 
>> to a supporting object.
>
> 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.)


More information about the Digitalmars-d-learn mailing list