C++ ref parameter passing to D parameter ...
BLS
nanali at nospam-wanadoo.fr
Sat Sep 22 03:26:00 PDT 2007
Hi, still at a marathon porting session.
I am pretty sure that my D port is correct, but due to the fact that I
have to translate similar stuff hundrets of time, I would like to asure
myself..
C++
bool GetLogFont(LOGFONT& LogFont)
{
ASSERT(m_hFont != NULL);
return (::GetObject(m_hFont, sizeof(LOGFONT), &LogFont) ==
sizeof(LOGFONT));
}
D
bool GetLogFont(ref LOGFONT LogFont)
{
assert(m_hFont !is NULL);
return (GetObject(m_hFont, LOGFONT.sizeof, &LogFont) == LOGFONT.sizeof);
}
Many thanks in advance,Bjoern
More information about the Digitalmars-d-learn
mailing list