C++ cast to D cast Part 2

Bill Baxter dnewsgroup at billbaxter.com
Sat Sep 22 13:21:14 PDT 2007


Jarrett Billingsley wrote:
> "BLS" <nanali at nospam-wanadoo.fr> wrote in message 
> news:fd2v57$1ueb$1 at digitalmars.com...
> 
>> CWin pActive = cast(CWin)cast(void*) 
>> cast(HWND)GetWindowLong(msg.hwnd,GWL_USERDATA);
> 
> Yessir. 

Yes that's what I meant, but I have no idea if it works.  It was just a 
guess.  Jarrett you can confirm that that avoids the runtime check in 
the cast?

--bb


More information about the Digitalmars-d-learn mailing list