C++ const to D2 const

BLS nanali at nospam-wanadoo.fr
Sun Dec 23 09:25:12 PST 2007


Sorry about the ignorance, but I am not a C++ programmer.
C++ / WIN API prog.
HINSTANCE GetResourceHandle() const { return (m_hResource ? 
m_hResource:m_hInstance); }

D2
invariant HINSTANCE GetResourceHandle()

Just guessing, can you confirm ?

...and by the way a very confusing C++ language construct.
RECT r = {0};

Does it mean : Set all members to 0 ? How to port this stuff into D ...
Thanks in advance.
Bjoern





More information about the Digitalmars-d-learn mailing list