POV-Ray : Newsgroups : povray.general : Feature requests iden() : Re: Feature requests iden() Server Time
8 Aug 2024 16:23:10 EDT (-0400)
  Re: Feature requests iden()  
From: Christoph Hormann
Date: 26 Nov 2000 08:23:06
Message: <3A210EBA.9B3A290F@gmx.de>
Rune wrote:
> 
> iden( string )
> 
> Turns a string into an identifier.
> 
> For example:
> 
> #declare iden("ThisFloat") = ThatFloat*2;
> 
> or
> 
> #declare ThisFloat = iden("ThatFloat")*2;
> 
> I find myself often need such a feature *very* much!
> 
> Please, anyone? :)
> 
> Rune

I'm not sure if that's easy to implement, furthermore it's likely to
produce errors because the string can change during eveluation of the Pov
code.

BTW, i don't know any programming language that has such a function.

Christoph

-- 
Christoph Hormann <chr### [at] gmxde>
Homepage: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

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