Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] exit() in Manta is bad


Chronological Thread 
  • From: James Bigler <bigler@cs.utah.edu>
  • To: "'manta@sci.utah.edu'" <manta@sci.utah.edu>, render@sci.utah.edu
  • Subject: [MANTA] exit() in Manta is bad
  • Date: Wed, 18 Jul 2007 20:41:49 -0600

Please, please, please, don't use exit() in Manta code. Manta is used as a library in other places and having it take your whole application down is a Bad Thing (TM).

You should use exceptions:

if (bad thing)
  throw InternalError("Bad thing happened", __FILE__, __LINE__);

Thanks,
James




  • [MANTA] exit() in Manta is bad, James Bigler, 07/18/2007

Archive powered by MHonArc 2.6.16.

Top of page