|
Posted by Bryan Oakley on 04/21/06 19:42
comp.lang.tcl wrote:
> Sorry, there is no further description I can give you. tclsh locks,
> produces 100% CPU usage when you view via top, no error logs of any
> kind.
>
> Here is PROPER_CASE:
> <snip>
Holy cow! All that just to change the case of words in a string?
The proc is a bit buggy at first glance. It's amazing it works at all.
It takes a string, does some string operations on it, then iterates over
it as if it were a list and performs list operations on it. Then, it
takes the list, performs string operations on it and returns a string.
Indeed, testing it out by copying it into a tclsh session, it _is_
buggy. If the first char is "-" it gets in an infinite loop.
Maybe you should file a bug with whomever wrote PROPER_CASE instead of
trying to work around its limitations.
--
Bryan Oakley
http://www.tclscripting.com
[Back to original message]
|