<p>Am 09.11.2015 13:11 schrieb "Mattias Gaertner" <<a href="mailto:nc-gaertnma@netcologne.de">nc-gaertnma@netcologne.de</a>>:<br>
><br>
> On Mon, 9 Nov 2015 10:48:02 +0000<br>
> Lukasz Sokol <<a href="mailto:el.es.cr@gmail.com">el.es.cr@gmail.com</a>> wrote:<br>
><br>
> >[...]<br>
> > Thanks, I believe, this should be added into the docs somewhere ;) if it's not already there.<br>
><br>
> The docs already note that the compiler uses a temporary register<br>
> for 'With'.<br>
><br>
> <a href="http://www.freepascal.org/docs-html/ref/refsu58.html#x155-16500013.2.8">http://www.freepascal.org/docs-html/ref/refsu58.html#x155-16500013.2.8</a><br>
><br>
> Of course if there is no register left the compiler uses the stack.</p>
<p>Please note that this is an implementation detail. The point a user should care about is that the expression of the with is evaluated only once (before the block of the with is entered). Everything else is up to the compiler.<br>
(I would prefer if it wouldn't be mentioned as is in the documentation)</p>
<p>Regards,<br>
Sven</p>