Wilfried, Even with 3 *different* function calls, "register" still calls them right to left, but "pascal" left to right.
Regards, Ken -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wilfried Mestdagh Sent: 11 October 2007 10:09 To: Delphi-Talk Discussion List Subject: Re[2]: code sequence Hello Ken, > On this basis, I don't think I'd want to rely on the calling convention to > resolve the function calling order for me. Correct. In this case because the same function call is used to return 3 different values the compiler takes the most optimized and just push the return values on the stack, where the other function will get them in reverse order. --- Rgds, Wilfried http://www.mestdagh.biz __________________________________________________ Delphi-Talk mailing list -> Delphi-Talk@elists.org http://www.elists.org/mailman/listinfo/delphi-talk -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.488 / Virus Database: 269.14.7/1062 - Release Date: 10/10/2007 17:11 __________________________________________________ Delphi-Talk mailing list -> Delphi-Talk@elists.org http://www.elists.org/mailman/listinfo/delphi-talk