>I added this to your routine: As usual, Colin is a stud. Adding Colin's elegant delete by word to my test code gives:
-- "Walk: 14175" -- "Delete: 9222" -- "Delete Words: 1909" I'm still in the habit of following the "always operate at the head of a string" rule, because when processors were a lot slower, you had to do it that way if you wanted your code to run in your lifetime. >Interestingly, if I change the character walk through of the word so >that it uses the delete approach too, the routine becomes slower. It would be interesting to see where the breakover point is, where the delete op becomes less costly than traversing the string. (And if/how this varies by processor speed...) tmc [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
