|
 |
I just noticed that the following code renders without errors, although
the syntax contains IMHO an error (Notice the last comma in the
parameter list):
<POV>
#macro MyMacro(Param1,Param2,Param3,)
//do something
#end
</POV>
(This does not cause any problems for me, just wanted to make sure
somebody who knows about the parser interna knows about it)
Florian
Post a reply to this message
|
 |
|
 |
In article <3ff1e105$1@news.povray.org>,
Florian Brucker <tor### [at] torfbold com> wrote:
> I just noticed that the following code renders without errors, although
> the syntax contains IMHO an error (Notice the last comma in the
> parameter list):
>
> <POV>
> #macro MyMacro(Param1,Param2,Param3,)
POV-Ray is very forgiving about commas. It often lets you leave them out
completely (which often causes surprises later on, so it is a bad idea
to do so), and usually lets you leave a trailing comma in lists of
items. (makes it easier to create that list with a loop...which doesn't
apply here)
--
Christopher James Huff <cja### [at] earthlink net>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: <chr### [at] tag povray org>
http://tag.povray.org/
Post a reply to this message
|
 |
|
 |
> POV-Ray is very forgiving about commas. It often lets you leave them out
> completely (which often causes surprises later on, so it is a bad idea
> to do so), and usually lets you leave a trailing comma in lists of
> items. (makes it easier to create that list with a loop...which doesn't
> apply here)
Fine :)
Florian
Post a reply to this message
|
 |