ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Technologies to Watch: A Look at Four That May Challenge Java’s Development Dominance
Subject:   What decade was that?
Date:   2005-10-22 01:47:52
From:   Danie
Response to: What decade was that?

Python is not OO to its core.


To qualify, it must at least adhere to the "everything is an object" principle. In Ruby (and Smalltalk) everything are objects. Even numbers. You can do this in Ruby:



class Fixnum
# Redefine +
def +(other)
"Addition is now obsolete"
end
end
puts 5 + 2


The result will that string.


1 to 1 of 1
  1. Do your homework
    2005-10-22 06:32:19  jpersson [View]

    • Do your homework
      2005-10-24 23:12:33  Ged.Byrne [View]

1 to 1 of 1