Re: lingo-l dot syntax to replace a char in a string?

2005-10-06 Thread Alex da Franca
Am 05.10.2005 um 22:27 schrieb Buzz Kettles: Here's my 'true' dot syntax solution : (using 'put' feels like cheating to me) someString = someString.char[1..4] - someString.char [6..someString.char.count] but it does something slightly different, in that it allocates a new string and

lingo-l dot syntax to replace a char in a string?

2005-10-05 Thread Cole Tierney
Just can't seem to get it. The following verbose works, so I should just use it and be done with it. But I'm still curious. How would the following look in contemporary syntax: put - into char 5 of someString -- Cole [To remove yourself from this list, or to change to digest mode, go to

RE: lingo-l dot syntax to replace a char in a string?

2005-10-05 Thread Thomas Higgins
put - into char 5 of someString put - into someString.char[5] There are operators like this in dot-syntax environments that don't require all items to be connected by dots, the above is about as full dot as you'll get with the put operator (different than the put() function which dumps

Re: lingo-l dot syntax to replace a char in a string?

2005-10-05 Thread Cole Tierney
put - into someString.char[5] Thanks Tom and Daniel! -- Cole [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 lingo-l@penworks.com (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning

Re: lingo-l dot syntax to replace a char in a string?

2005-10-05 Thread Buzz Kettles
At 2:33 PM -0400 10/5/05, you wrote: Just can't seem to get it. The following verbose works, so I should just use it and be done with it. But I'm still curious. How would the following look in contemporary syntax: put - into char 5 of someString -- Cole Hi Cole, Here's my 'true' dot

Re: lingo-l dot syntax to replace a char in a string?

2005-10-05 Thread Cole Tierney
At 1:27 PM -0700 10/5/05, Buzz Kettles wrote: someString = someString.char[1..4] - someString.char[6..someString.char.count] That having been said, 'put' works so straightforwardly that the hybrid (verbose + dot) seems like a much better approach. :) Thanks for pitching that in, Buzz. I