Hello sir Mike (aka Mike Campbell [mailto:michael_s_campbell@yahoo.com]):
You remarked last Monday, December 09, 2002 11:10 AM:
String#concat is a synonym for String#<<, and since it modifies the
object, a concat! version wouldn’t make sense. You can indeed use
String#+ if you want to create a new string instead of
modifying the
old one.To be fair here, it might be argued that the String#concat
alias is misnamed and
IT doesn’t make sense, given what it does. Seems to me
(and I’m guessing
Botp) that the alias SHOULD be String#concat!.
You read my mind right, sir Mike. I was trying to avoid !-methods,
(un)fortunately, I tripped/missed. #concat does what “#concat!” does
Anyway, I have one non-! method to avoid, #concat [*]
Kind regards,
-botp
[*] pls don’t get me wrong on the avoidance, this is only my personal way of
learning ruby… It works for me but it may not work some/all of the
nubies…