POV-Ray : Newsgroups : povray.general : #declare : Re: #declare Server Time
5 Aug 2024 14:14:36 EDT (-0400)
  Re: #declare  
From: Christopher James Huff
Date: 19 Oct 2002 20:11:15
Message: <3db1f4a3@news.povray.org>
"Rafal 'Raf256' Maj" <raf### [at] raf256com> wrote in message
news:Xns### [at] 204213191226...
> I.e someone will write script, with variables like say :
>   a, b, c, speed, displacment, size
> It will work fine, until in say POV 4.0 displacment will became a
> reserved word and stop this script from working.

Use upper case in your variable names. Upper case words will never be
reserved.


> What do You think about allowing, as PHP, syntax with variant types,
> say :
> $x = 100;
>   "foo"+$x+"bar"  will result in "foo100bar" (x is used like string)
> and :
>   20 + $x         will result in 120 (x is used like number)

You're joking, right? You *like* that?


Post a reply to this message

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