|
![](/i/fill.gif) |
Axel Baune <aba### [at] neuro informatik uni-ulm de> wrote:
: The variant
:> > #declare A = A + B;
:> > #declare A = A - B;
: is far more readable than the other.
In this case yes. But what about a longer identifier, like something
already suggested:
#declare ColorArray[ColorIndex][ColorSubIndex].red =
ColorArray[ColorIndex][ColorSubIndex].red + 1;
or:
#declare ColorArray[ColorIndex][ColorSubIndex].red += 1;
Note also that if one of the indices is a complex mathematical operation,
it would have to be calculated twice, instead of just once.
Also if you have to modify the line, you would have to do it in two places
in the line instead of just one place.
And you don't have to use the feature if you don't want to. The existance
of a feature doesn't make it mandatory to use it. I don't make a quartic
to get a torus although this possibility exists and is an inherent feature
in povray.
: Besides this it would comlicate the
: parser of PoV if the other variant should be maintained.
Was this only a guess or do you really know that it will be conclusively
more complicated?
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |