POV-Ray : Newsgroups : povray.advanced-users : variables in sdl : Re: variables in sdl Server Time
5 Jul 2024 14:10:04 EDT (-0400)
  Re: variables in sdl  
From: [GDS|Entropy]
Date: 23 Jan 2008 14:10:57
Message: <47979141$1@news.povray.org>
Hey Warp,

Actually, you're right.
For some reason I was thinking of this:
"string" + variable + "string"

And logically, after a very long day, I completely invert the concept.
Sheesh...I really don't get enough sleep.

I do apreciate your help.

Ian

"Warp" <war### [at] tagpovrayorg> wrote in message 
news:4796f8a2@news.povray.org...
> [GDS|Entropy] <gds### [at] hotmailcom> wrote:
>>   #local Positions[J][Jx] = <0,var+J,0>; // so that it would be processed 
>> as
>> var0 etc..
>
>> Normally one could accomplish this quite easily in any other 
>> language...and
>> I am guessing this is possible in sdl as well...
>
>  I don't know of any language which would interpret "var+J" as anything
> else than the sum of the values of 'var' and 'J'. Also, I don't know many
> languages which support creating variable names from expressions and then
> interpreting those variable names (maybe PHP is one of them).
>
> -- 
>                                                          - Warp


Post a reply to this message

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