Guest User

Untitled

a guest
Nov 20th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. { 1 }
  2. procedure Foo();
  3. begin
  4. with TBar.Create() do
  5. try
  6. DoSomething();
  7. finally
  8. Free();
  9. end;
  10. end;
  11.  
  12. { 2 }
  13. procedure Foo();
  14. var
  15. Bar: TBar;
  16. begin
  17. Bar := TBar.Create();
  18. try
  19. Bar.DoSomething();
  20. finally
  21. Bar.Free();
  22. end;
  23. end;
Add Comment
Please, Sign In to add comment