Help translating C/C++ snippet to D
Dustin
dustin.sneeden at gmail.com
Mon Jul 2 19:34:02 PDT 2012
Hello,
I'm trying to follow along with a C++ tutorial and translate it
to D but I don't know C/C++ well enough to understand this
#Define statement:
#define ARRAY_COUNT( array ) (sizeof( array ) / (sizeof( array[0]
) * (sizeof( array ) != sizeof(void*) || sizeof( array[0] ) <=
sizeof(void*))))
Can anyone help me understand this and translate it to a D
function? Thanks for your time.
More information about the Digitalmars-d-learn
mailing list