On Fri, 1 Sep 2006, Bisma Jayadi wrote:

Hi all...

I've always been confused about this subject... flag or exception for error handling? Can anyone share knowledges and ideas about when and where and why a (pascal) developer should chose one over another?

This is highly developer dependent.

I personally prefer exception-based code. I find it more clear and readable (less IF's), and more structured (easier cleanup in case of error, etc.)

But this is a personal opinion.

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to