POV-Ray : Newsgroups : povray.beta-test : Windows editor does not recognize some keywords : Re: Windows editor does not recognize some keywords Server Time
1 Jun 2024 23:02:45 EDT (-0400)
  Re: Windows editor does not recognize some keywords  
From: Thorsten Froehlich
Date: 20 Jul 2011 14:51:03
Message: <4e272397$1@news.povray.org>
On 20.07.11 20:16, Patrick Elliott wrote:
>> No, there is a difference between built-in variables and declared
>> variables. The former are keywords and cannot be changed by the user.
>> The later are accessible by SDL just like any other declared variable.
>>
>> Thorsten
>>
> Hmm. So.. What is being said is we need a smarter parser, that recognizes
> declared values, and marks them as such (different hilighting than the built
> ins though). Seriously though, this is standard in most language editors,
> being able to recognize, especially when its a specific language the editor
> was designed for, when you have declared something, otherwise object
> oriented programming would be a total pain in the ass, for example.
>
> That said, the solution is likely one of those, "We will get to it when we
> get the thing working completely, like... next version.", unless someone
> else comes along and does something about it themselves. ;)

This has been in the Mac editor for a long time (even though there currently 
is no official Mac 3.7). The code is fairly simple and portable. I actually 
thought it had also been in the Windows version, but maybe I am mistaken.

However, this won't actually help for some of those variables in 3.7, as 
they are implemented as declares passed on the command-line internally to 
maintain backward-compatibility with 3.6 scenes.

Of course, the more interesting feature that exists now is the ability to 
change these variables in the scene. Though I am not sue anybody makes use 
of that as of now.

The rationale behind this change is the clearer separation between parsing 
and rendering. Of course, this is just one step in a longer transition on 
that end, with a fairly open end.

	Thorsten


Post a reply to this message

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