[nem-en] The ReportFatal problem

Michal Moskal michal.moskal at gmail.com
Tue Feb 13 01:11:33 CET 2007


On 2/12/07, vc <vc at rsdn.ru> wrote:
> The ReportFatal method generate exception and stop parsing/typing process.
> It behavior sometime (if code contains errors) prevent IntelliSense.

The fact that it throws exception allows us not to return value from a
function, when there is some error. It is sometimes the case that
there is no reasonable value to be returned in case of error, more
often it is just laziness.

The other thing is that throwing exception allows us to catch it some
levels up, to skip presenting errors in the same line of code over and
over again.

> Whether it is possible to refuse from ReportFatal?

So it's probably possible to easily remove it from most places, and
with some effort from others.

-- 
   Michał


More information about the devel-en mailing list