POV-Ray : Newsgroups : povray.newusers : Is there a "string length" function? : Re: Is there a "string length" function? Server Time
4 Nov 2024 17:34:44 EST (-0500)
  Re: Is there a "string length" function?  
From: Warp
Date: 21 Feb 2003 05:39:29
Message: <3e5601e0@news.povray.org>
Tom Melly <tom### [at] tomandlucouk> wrote:
> One oddity in this case is that strlen (and some other string-related functions)
> do not appear under the string function section, but instead are under the
> float-function section. Okay, it returns a float, but IMHO such functions could
> be listed in both sections.

  Functions are categorized based on what they return.
  Functions can take any type of parameters (floats, vectors, strings,
objects...) and it would be too hard and awkward to start categorizing
them according to what they take as parameter. (For example, how would
you categorize the trace() function?)

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

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