Thorsten Froehlich wrote:
> In article <411a62cc@news.povray.org> , Wolfgang Wieser
> <wwi### [at] nospam gmx de> wrote:
>
>> POVRay for UNIX does not exit with a non-zero exit status when an Error(..)
>> occurs (such as during parsing).
>
> One could also just call exit ... on the other hand, a clean way would
> certainly be to assign the error code to a variable an return that. Your
> code certainly is not a clean solution.
>
Well... UNIX povray actually will never exit() but instead go though some
longjmp into the cooperate funcion which will then return to main or throw
some exception. It took me some time until I finally figured out what was
actually going on here and I was really wondering if the present state
can be called a "clean solution"...
But I'm sure, Nicolas will come up with something better. :)
Wolfgang
Post a reply to this message
|