|
![](/i/fill.gif) |
On 28 Jan 1999 08:49:18 -0500, Nieminen Mika <war### [at] cc tut fi> wrote:
> Are there any places where you can put an identifier and where it isn't
>unambiguous which kind of identifier it is?
#declare A=1;
#declare A=<1,2,3>;
#declare B=2;
#declare B=<4,5,6>;
#declare C=A+B;
Should C be 3, <5,7,9>, <3,4,5>, or <5,6,7>?
But in general, why is this more useful than just putting the
type information into the declaration?
#declare cGold=rgb <whatever>
#declare pGold=pigment {color cGold}
#declare fGold=finish {whatever}
#declare tGold=texture {pigment {pGold} finish {fGold}}
You know as well as the computer does what you want to use in any
given place, so just stick the appropriate character on:
light_source {20, cGold }
sphere {0,1 texture {tGold}}
Post a reply to this message
|
![](/i/fill.gif) |