David A. Black wrote:
> Hi --
> 
> On Sat, 29 Mar 2008, Tony De wrote:
> 
>>>>> --
>>>
>> why?  I would really like to understand this a little more.  Thanks
>> guys, all of you, for your help.
> 
> Just to be clear: they both work. They're different methods, though,
> and they do different things. sort! stores its results back in the
> original object; sort returns the results in a new object.
> 
> The significance of the ! at the end is that the method is considered
> to be the "dangerous" version of the non-! method of the same name.
> (This is the conventional, intended meaning of !, although it has no
> language-level significance to the interpreter.) You can think of the
> "danger", in this case, as consisting of the fact that your original
> object will be altered. The ! is a kind of "heads up!" sign.
> 
> 
> David

Oooooooo!  We'll that makes perfect sense.  Thanks!  You know, sometimes 
you read your handy pickaxe or a blog somewhere, buy it slides right 
past you.  I appreciate the clarification.

tonyd
-- 
Posted via http://www.ruby-forum.com/.