On 17.03.2013 15:07, Paul Ishenin wrote:
If I need to choose from 3, 4 and 5 I would use ':=' syntax because it
more like to assignment:

with a := TStringList.Create do
begin
   Text := 'bla';
   DoSomething(a);
   Free;
end;

Yes, I would prefer the ":=" as well because it's basically an assignment. OR (now it's getting crazy, especially with the example you gave ;) ):

=== code begin ===

with a absolute TStringList.Create do begin
  ...
end;

=== code end ===

Regards,
Sven
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to