[fpc-pascal] with statement using mulltiple objects

Martin Schreiber mse00000 at gmail.com
Mon Sep 15 08:01:26 CEST 2014

On Monday 15 September 2014 07:55:20 Sven Barth wrote:
> As you can see the expression p^ is only evaluated once in the TestWith
> case while it's evaluated twice in the TestWithout one. So it's only
> minimally faster in this example (one less memory access), but if you
> use enough members of TTest it a more or less tight loop it might even
> be noticeable.
Or if the reference is calculated for example in an array of record or a 
getter function.


More information about the fpc-pascal mailing list