Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

RE: RE: My own

by kapper (Chaplain)
on Oct 26, 2000 at 22:20 UTC ( #38697=note: print w/ replies, xml ) Need Help??

in reply to RE: My own
in thread Other programming language I most often use

The following code will output Ruby is a great language!

a="Perl" def a.+ other "Ruby"+other end a+=" is a great language!\n"
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!

Or am I just confusing it with that so-called OO language being hyped by Sun? {grin}
He he... probably... I have had alot of beginners getting really confused over the hybrid style of Java...

Comment on RE: RE: My own
Download Code
Replies are listed 'Best First'.
Re (tilly) 3: My own
by tilly (Archbishop) on Dec 08, 2000 at 04:45 UTC
    Having looked at it recently I think that there may be a couple of exceptions. Specifically Fixnum. However since that is just an internal representation of Integer I don't think there is any practical limitation there.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://38697]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2015-10-10 13:46 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (257 votes), past polls