POV-Ray : Newsgroups : povray.advanced-users : Allowing reserved keywords to be used as identifier names? : Re: Allowing reserved keywords to be used as identifier names? Server Time
28 Jul 2024 18:22:13 EDT (-0400)
  Re: Allowing reserved keywords to be used as identifier names?  
From: Thorsten Froehlich
Date: 31 May 2004 15:19:07
Message: <40bb852b$1@news.povray.org>
In article <40bb476a@news.povray.org> , Warp <war### [at] tagpovrayorg>  wrote:

> Thorsten Froehlich <tho### [at] trfde> wrote:
>> But can something like this always be determined in constant time?  If not,
>> and I think it cannot always be determined in constant time, it would make
>> parsing really slow.
>
>   Can you give an example where it can't be solved in constant time?

This is a guess from the top of my head.  What would be the color of the
sphere sp1 and sp2?

    Thorsten

#declare sp1 = sphere
{
 z*10,1
 texture
 {
  pigment
  {
   color
   #declare blue = 0;
   blue
   #declare blue = 1;
   blue
   blue
   blue
   blue
  }
 }
}

#declare sp2 = sphere
{
 z*10,1
 texture
 {
  pigment
  {
   color
   #declare blue = 0;
   blue
   #declare blue = 1;
   blue
   blue
   blue
   blue
   blue
  }
 }
}

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

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