Transparent cast from class to member pointer?

diniz diniz at posteo.net
Mon Apr 15 13:52:40 UTC 2019


Le 15/04/2019 à 08:30, Robert M. Münch via Digitalmars-d-learn a écrit :
> The C side requires that *impl is the 1st member in the struct/class whereever 
> it is stored. Hence, the wrapping in a struct and not directly putting it into a 
> D class.

All right! Did not think at this usage case, interfacing with C.

-- 
diniz {la vita e estranj}


More information about the Digitalmars-d-learn mailing list