POV-Ray : Newsgroups : povray.newusers : Is there a "string length" function? : Re: Is there a "string length" function? Server Time
31 Jul 2024 08:32:08 EDT (-0400)
  Re: Is there a "string length" function?  
From: Warp
Date: 21 Feb 2003 09:56:10
Message: <3e563e0a@news.povray.org>
Christopher James Huff <cja### [at] earthlinknet> wrote:
>> (For example, how would you categorize the trace() function?)

> "Other"

  Very logical naming? When you want to consult the documentation to
see what was the syntax of that function, you immediately can deduce
by logic that this function is of type "other"? (How do you deduce
that? Perhaps "because it takes lots of mixed-type parameters"? Not
very logical.)

  And what about defined(), dimensions(), dimensions_size(), inside(),
val() and min_extent()? Are they of type "other" (because they use
several types as parameters/return values) or perhaps something else?

  When you know that functions are categorized by their return value,
it's easy to find the function in the documentation. (eg. "min_extent()
returns a vector, thus it's in 'vector functions'")

-- 
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

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