POV-Ray : Newsgroups : povray.beta-test : strange concatenation rules : Re: strange concatenation rules Server Time
4 Nov 2024 21:21:51 EST (-0500)
  Re: strange concatenation rules  
From: Bob H 
Date: 24 Sep 2001 15:15:52
Message: <3baf8668@news.povray.org>
"Ron Parker" <ron### [at] povrayorg> wrote in message
news:slr### [at] fwicom...
> On Mon, 24 Sep 2001 08:39:18 -0500, Bob H. wrote:
> >
> >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.

Thanks for the dose of wisdom.  I figured concat had to glue at least two
strings together, had never questioned whether it did or not.  Likewise
about commas, I'm a comma user.

Bob H.

> 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.)


Post a reply to this message

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