|
![](/i/fill.gif) |
In article <3e576a0f@news.povray.org>, Warp <war### [at] tag povray org>
wrote:
> strlen() is a float function.
It's part of the string toolkit, meant specifically for working with
strings. It's a string function. If POV were object oriented, it would
be a method of string objects, not floats.
> There's a good and logical reason for calling it a float function (and
> you should know it without me telling it).
Yes, but theres also a logical reason for calling it a string function,
and a much more intuitive one.
> So naming and categorizing functions by their return value is not only
> logical but it's actualy a categorization by purpose: Float functions are
> those which can be used anywhere a float value is expected.
But it isn't a categorization by purpose, which is the problem. It is a
categorization by return type.
--
Christopher James Huff <cja### [at] earthlink net>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tag povray org
http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |