[fpc-pascal] with statement using mulltiple objects

Philippe philippe at quarta.com.br
Sun Sep 14 18:05:57 CEST 2014


someone wrote about a better performance using "with". is that true?
even with a simple pointer as in: 

with ptr^ do 


prop1 := ...

prop2 := ... 


which should be faster then 

ptr^.prop1 := ...

ptr^.prop1 := ... 

others wrote it is just usefull to save writing
time ... 

Em 14.09.2014 12:40, Luca Olivetti escreveu: 

> El 14/09/14
17:20, Marco van de Voort ha escrit:
>> In our previous episode,
Martin Schreiber said: 
>>>> basically stopped using it.
>>> Why
does Free Pascal not invent a safe "with" similar as the "with" of
>> The primary question is of course if there is a need for a
new construct at all. I don't know MSELang, but many new languages try
to add new baroque constructs in a desperate attempt to draw users. I
always found that doubtful.
> I replied this morning about TI pascal
(ca.1979), but for some reason I
> don't see it in the list.
> Bye


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140914/4f4a50da/attachment.html>

More information about the fpc-pascal mailing list