PDA

View Full Version : const parameters and the JEDI DX headers



Useless Hacker
18-12-2002, 01:12 PM
I have always understood that const was basically the same as var, in that it passed parameters by reference. However, in the JEDI directx headers, often, for example:

DWORD dwFlags
has been translated to:
const dwFlags: LongWord
whereas I would have translated it to:
dwFlags: LongWord

Am I missing something?

Summers Gone
18-12-2002, 02:53 PM
Const is not automatic passing reference. Only if the used type is bigger than 4 (or 8 ?) Bytes. Therefore it doesn't matter if theres const or not const.

Useless Hacker
18-12-2002, 09:38 PM
Oh. :roll: