POV-Ray : Newsgroups : povray.beta-test : strange concatenation rules : Re: strange concatenation rules Server Time
4 Nov 2024 21:20:56 EST (-0500)
  Re: strange concatenation rules  
From: Ron Parker
Date: 24 Sep 2001 14:42:08
Message: <slrn9quvk2.p48.ron.parker@fwi.com>
On Mon, 24 Sep 2001 08:39:18 -0500, Bob H. wrote:

>news:h9utqt0r7aer5md5md2ge3kpu39131k51e@4ax.com...
>>
>> Please parse below and look at the output where it stops and what is
>> the output. I didn't found anything within 6.1.7.1 and 6.1.7.3 what
>> could explain this
>
>I don't see a problem, you just need to use comma separation.  concat() is
>obviously ignoring the quotes when without commas which turns the "2" into
>nothing seen.  So that error of the last example is seeing just a 1 with
>nothing to concatenate onto it.
>
>Looking at the Scene Help I don't see an example without commas.

Commas are supposed to be optional just about everywhere, including here.
Also, it works if you type 'concat("1")' which doesn't make sense if you 
go by the reasoning you've proposed.

What was happening was much more complicated, but essentially POV was throwing
away every second token inside the parentheses, but with some additional 
caveats that made it unable to parse the example with two parameters.  This
will be fixed in an upcoming beta. (and, more importantly, it is NOT a 
documentation bug, so no need to say anything about commas being required.)

-- 
plane{-z,-3normal{crackle scale.2#local a=5;#while(a)warp{repeat x flip x}rotate
z*60#local a=a-1;#end translate-9*x}pigment{rgb 1}}light_source{-9red 1rotate 60
*z}light_source{-9rgb y rotate-z*60}light_source{9-z*18rgb z}text{ttf"arial.ttf"
"RP".01,0translate-<.6,.4,.02>pigment{bozo}}light_source{-z*3rgb-.2}//Ron Parker


Post a reply to this message

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