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
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
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
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
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
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