POV-Ray : Newsgroups : povray.general : #declare : Re: #declare Server Time
5 Aug 2024 14:20:01 EDT (-0400)
  Re: #declare  
From: hughes, b 
Date: 19 Oct 2002 20:49:51
Message: <3db1fdaf$1@news.povray.org>
"Christopher James Huff" <cja### [at] earthlinknet> wrote in message
news: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
>
> Use upper case in your variable names. Upper case words will never be
> reserved.

Would it be conceivable that a future POV-Ray could tag any and all
user-defined identifiers, regardless of case, as a non-keyword? It's not
always compulsory to use upper case letters so it can seem okay. In fact,
people have often complained they couldn't use a number as the first
character either.

> > 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?

That would be weird to me.


Post a reply to this message

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