Results 1 to 3 of 3

Thread: const parameters and the JEDI DX headers

  1. #1

    const parameters and the JEDI DX headers

    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:
    Code:
    DWORD dwFlags
    has been translated to:
    [pascal]const dwFlags: LongWord[/pascal]
    whereas I would have translated it to:
    [pascal]dwFlags: LongWord[/pascal]

    Am I missing something?
    [size=10px][ Join us in #pgd on irc.freenode.net ] [ Sign the Petition for a Software Patent Free Europe ][/size]

  2. #2

    const parameters and the JEDI DX headers

    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.

  3. #3

    const parameters and the JEDI DX headers

    Oh. :roll:
    [size=10px][ Join us in #pgd on irc.freenode.net ] [ Sign the Petition for a Software Patent Free Europe ][/size]

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •