POV-Ray : Newsgroups : povray.unofficial.patches : Error handling during parsing : Re: Error handling during parsing Server Time
28 Sep 2024 16:38:51 EDT (-0400)
  Re: Error handling during parsing  
From: Peter Popov
Date: 18 Dec 2003 06:59:29
Message: <qr43uvcbcktf1doelq09pr58ievj8vfm5e@4ax.com>
On 17 Dec 2003 10:04:10 -0500, Warp <war### [at] tagpovrayorg> wrote:

>  How about just using file_exists()? (See section 6.1.3.6 of the POV-Ray
>documentation.)

You can check whether the file is there but not if does not generate a
parsing error. It can be an invalid image file, invalid density file,
or simply an include file generated from an external utility that for
some reason gives an error. You and ABX are right though, in that
file_exists() should be enough in most cases. Just not all.

File i/o aside, there are situations where some primitive exception
handling comes to the rescue. Even for debugging if not for release.
In any case such a feature could be useful for parse-intensive
applications such as particle systems, surface subdivision, your own
and Chris' mesh macros etc.


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.