POV-Ray : Newsgroups : povray.general : Attempt to POV4 Syntax basics : Re: Attempt to POV4 Syntax basics Server Time
31 Jul 2024 10:22:35 EDT (-0400)
  Re: Attempt to POV4 Syntax basics  
From: Fa3ien
Date: 6 Oct 2007 12:40:11
Message: <4707ba6b$1@news.povray.org>

> Fa3ien <fab### [at] yourshoesskynetbe> wrote:
>> I had a macro like this :
>>   #macro Window (Height,Width,TopArc,MullionThick,...) //many parameters
> 
>> When invoked, it looked like :
>>   Window (250,300,25,5,2,1,1,4,6,120,5)
> 
>> ...unreadable as hell.  I would loved to be able to do
>>   Window {height = 250 width = 130 mullion_thickness = 5 ...}
>> in any order, and with default values.
> 
>   You know, you can write /* comments */.

Yes, I could.
But I still have to
- specify ALL paramters
- specify them in strict order

With built-in functions, i can write :
light_source {... area_light ... circular orient adaptive 2}
or, as well
light_source {... area_light ... adaptive 2 orient circular}

I know that almost no programming language allows that kind
of parsing feature in user-defined functions, but I regret it.

Fabien.


Post a reply to this message

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