|
|
ingo wrote:
>
> During writing mesh generation macros I often wished there woud be a try
> except thingy. There are cases where POV-Ray just continues parsing
> although the results are wrong, for example nomalising a zero length
> vector.
But this is not the kind of situation a try .. except block should be
used for. You can easily solve this with a simple #if.
A try .. except would be useful for something like what Peter mentioned
if you do not only want to check for the existence of a file but also
want to handle the case the file exists but is not a valid png image.
Christoph
--
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 25 Oct. 2003 _____./\/^>_*_<^\/\.______
Post a reply to this message
|
|