I am sad, that the new coding style in XE6 is:
I am sad, that the new coding style in XE6 is:
obj := TMyObject.Create;
try
...
finally
obj.DesposeOf
end;
See the vidoe at 0:38 sec
If they had Free properly implemented in ARC, we still could use try finally .Free patern.
http://www.youtube.com/watch?v=jy4zJ5NIx4E&list=PLwUPJvR9mZHixWJugJ6QlI0hCXDtT329j&index=25
obj := TMyObject.Create;
try
...
finally
obj.DesposeOf
end;
See the vidoe at 0:38 sec
If they had Free properly implemented in ARC, we still could use try finally .Free patern.
http://www.youtube.com/watch?v=jy4zJ5NIx4E&list=PLwUPJvR9mZHixWJugJ6QlI0hCXDtT329j&index=25
Comments
Post a Comment