<?xml version="1.0" encoding="windows-1252"?>
<node id="38697" title="RE: RE: My own" created="2000-10-26 18:20:07" updated="2005-08-13 02:17:23">
<type id="11">
note</type>
<author id="5459">
kapper</author>
<data>
<field name="doctext">
The following code will output &lt;I&gt;Ruby is a great language!&lt;/I&gt;
&lt;CODE&gt;
a="Perl"
def a.+ other
  "Ruby"+other
end
a+=" is a  great language!\n"
&lt;/CODE&gt;
So, ruby does actually allow you to extend and redefine it's built-classes.. the example also works if you define a new class which inherits String, instead of using singleton style inheritance.. I have not  however tested this with every built-in class, but those I have tried it with, worked fine!&lt;BR&gt;
&lt;BR&gt;
&lt;I&gt;Or am I just confusing it with that so-called OO language being hyped by Sun? {grin} 
&lt;/I&gt;&lt;BR&gt;
He he... probably... I have had alot of beginners getting really confused over the hybrid style of Java...</field>
<field name="root_node">
37970</field>
<field name="parent_node">
38688</field>
</data>
</node>
