POV-Ray : Newsgroups : povray.general : Parser oddities (sum/prod and others) : Re: Parser oddities (sum/prod and others) Server Time
30 Jul 2024 00:17:03 EDT (-0400)
  Re: Parser oddities (sum/prod and others)  
From: Christian Froeschlin
Date: 20 Apr 2010 04:20:38
Message: <4bcd63d6$1@news.povray.org>
Bent wrote:

> Also, I was curious why POV-Ray is only picky about argument delimiters (that
> is, commas) some of the time.

I suppose it's mostly a matter of organic growth.
Of course, your working code sample should be avoided
outside of short code competitions ;)

> However, it is not happy with this:
> 
> #declare f=function{pow(3!1)}

Functions are treated rather specially anyway.
Other things such as arrays also do not work
inside functions.

> It isn't happy with this, either:
> 
> #macro A(b(c))b+c#end

I'm not sure why you would expect this to work.
It's not as if parentheses are just something to
separate identifiers and be discarded.

> #debug("a\n")

That is as documented although I'd find a syntax
with parentheses more natural as well for #debug,
#fopen, #fclose, #warning and #error.


Post a reply to this message

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