Hello:

A little off-topic and probably just a stupid idea.

I have wondered many times why there are two different sentences to
handle an exception and to clean objects etc. I have missed many times
in database work.

I mean:

try
  try
   ......
  except
   <handle>
  end;
finally
  <clean>
end;

It would cleaner if it could be written:

try
   ......
except
  <handle>
finally
  <clean>
end;


I suppose there is a misconception in my idea and it is deadly stupid,
because Borland  must have had good reasons to design it with two
separated blocks, but I can't guess why.

Santiago A.




_______________________________________________
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to