[dcc32 Error] Foobar.pas(291): E2033 Types of actual and formal var parameters must be identical

[dcc32 Error] Foobar.pas(291): E2033 Types of actual and formal var parameters must be identical

Thanks compiler for telling me which parameter is wrong, and in which way... oh wait, no you didn't tell me did you, you useless twat.

Comments

  1. Yeah... What usually catches me out is the use of const and no const in the parameters.

    ReplyDelete
  2. In this case it was the fact that I had three almost identical methods, which performed the same call, and I hadn't noticed the compiler had moved on after I fixed the first one (tired eyes), so assumed my fix didn't work.

    ReplyDelete
  3. Oh and this was a StringToFoo where a var parameter took an integer, while the corresponding FooToString call had the same parameter defined as a cardinal. Sloppy header translation perhaps.

    ReplyDelete

Post a Comment