Michael Van Canneyt wrote:
No.

Adding 'Const' does NOT automatically imply passing it by reference.

This used to be so in the initial versions of the compiler,
but has been changed quite a while ago.

But TRect is a structure. Everything I read from Delphi documentation states that calling conventions always pass the variable by reference if it is a structure. How can a TRect not be passed by reference? Would the compiler try to PUSH 4 integer-size variables to the stack? I think this is almost impossible to happen.

Also the Delphi (5) declaration of the functions has const keyword.

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to