in reply to RE: My own
in thread Other programming language I most often use
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!a="Perl" def a.+ other "Ruby"+other end a+=" is a great language!\n"
|
---|
Replies are listed 'Best First'. | |
---|---|
Re (tilly) 3: My own
by tilly (Archbishop) on Dec 08, 2000 at 04:45 UTC |