[haiku-commits] Re: haiku: hrev44092 - src/libs/alm src/libs/linprog headers/libs/alm src/tests/libs/alm

  • From: Stephan Aßmus <superstippi@xxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 03 May 2012 09:17:02 +0200

Hi,

On 02.05.2012 23:54, Ingo Weinhold wrote:
   a.b(c)

the result of subexpression a and c both are arguments to function c (the 
"this" pointer is a regular argument) and the evaluation order of arguments of 
a function is undefined as per the standard. Particularly in the context of the layout 
builders that's probably something worth mentioning in the documentation.

Yes, I was bitten by that, too. Particularily when using builders for a grid, in which one passes column and row indices... you can't just declare an "int32 row = 0" before invoking the builder and then increment "row++" in the parameters. I've solved it by doing this in a subroutine at the time. But definitely worth mentioning in the docs.

Best regards,
-Stephan

Other related posts: