POV-Ray : Newsgroups : povray.beta-test : Updated parser. Standard include warning noise. : Re: Updated parser. Standard include warning noise. Server Time
20 Jun 2021 17:39:50 EDT (-0400)
  Re: Updated parser. Standard include warning noise.  
From: William F Pokorny
Date: 7 Feb 2019 11:47:13
Message: <5c5c6111$1@news.povray.org>
On 2/7/19 10:33 AM, clipka wrote:
> Am 07.02.2019 um 15:56 schrieb William F Pokorny:
> There are two ways to address this issue:
> (1) Educate users that includes should be placed before any `default` 
> statement.
> (2) Update the include files (which btw. won't be delivered before the 
> beta phase).
> Another approach to reduce the number of such warnings might be to not 
> trigger them when a `#version` statement is encountered, but only when 
> defaults are actually accessed; but that would be some work in the parser.

Most desirable I suppose, but yeah. (1) & (2) Perhaps good enough in 

> (BTW, I have an aversion to the `#default` notation, and think `default` 
> - without the `#` - should be considered the canonical one; the reason 
> being that I think the concept of default values is more at home among 
> the "raw" descriptive portions of the SDL, than the slapped-on 
> imperative programming portion that is the set of `#` directives.)

Thanks & I agree! It's never registered with me default {} was OK 
syntax. Should we update:



Bill P.

Post a reply to this message

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