POV-Ray : Newsgroups : povray.general : The Language of POV-Ray : Re: The Language of POV-Ray Server Time
10 Aug 2024 15:25:02 EDT (-0400)
  Re: The Language of POV-Ray  
From: Axel Baune
Date: 10 Mar 2000 06:32:11
Message: <38C8DD71.3560294C@neuro.informatik.uni-ulm.de>
Ken wrote:
> 
> Johannes Hubert wrote:
> >
Hello,

> > "ingo" <ing### [at] homenl> wrote in message
> > news:8EF2B8E07seed7@204.213.191.228...
> > > Nieminen Juha wrote:
> > >
> > > >#declare A += B;
> > > >#declare A -= B;
> > >
> > > What does it mean?
> >
> > the same as
> >
> > #declare A = A + B;
> > #declare A = A - B;
> 
> So the way I see it by adding this you would save yourself the effort
> of typing one character. The question the potential patch writer must
> ask himself then is if it be worth the effort to patch the program to
> accept this new style of arguement just to save the user from having
> to type one more character into their scene file. Reduced to this it
> would seem a petty feature.
> 
> --
> Ken Tyler -  1300+ Povray, Graphics, 3D Rendering, and Raytracing Links:
> http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/

I agree.

The variant

> > #declare A = A + B;
> > #declare A = A - B;

is far more readable than the other. Besides this it would comlicate the
parser of PoV if the other variant should be maintained. This will lead
to a new type of possible parser bugs.  

Yours Axel Baune


Post a reply to this message

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