|
![](/i/fill.gif) |
Thorsten Froehlich wrote:
> In article <411a968f@news.povray.org> , Wolfgang Wieser
> <wwi### [at] nospam gmx de> wrote:
>
>> After thinking about it: What about completely sending all that
>> longjmp stuff to hell (grin...) and simply use:
>
> Not a good idea. While it may work, the problem is the side effect of an
> exception - it calls all the appropriate destructors. However, as POV-Ray
> cleans up itself, this is not exactly desired...
>
Hmm... I don't completely understand that.
(1) the objects destroyed by the exception are all allocated on the stack.
How could that harm?
(2) There are quite a lot of "throw (int)" in the code and I don't see the
difference (without having had a look at the scattered catch constructs).
Wolfgang
Post a reply to this message
|
![](/i/fill.gif) |