[Sussex] Linux IDE's

Thomas Adam thomas at edulinux.homeunix.org
Thu Apr 14 21:26:40 UTC 2005


On Thu, Apr 14, 2005 at 10:20:40PM +0100, Steve Dobson wrote:
> No, I believe that is true of smalltalk because (I was told) you can
> inherit from any type. There are a number of scalar types in Java that
> you can't inherit from: int, float and boolean for example.

I realise that, but I was talking more from the point that for something
to run in Java, it _has_ to be run from within main() -- in C++ does not
have to be the case.  By forcing you into using OO-techniques, I was
certainly not implying types.

> Of course there are the objects that represent the scalar types, but
> by having them I don't think you can say that in Java you can only
> work that way.

Smalltalk (like Ruby) is pure OO-oriented.  That is to say *everything*
is an object -- unlike in Java, where only limited types are (although
the primitive types do have Wrapper classes around them, in Java).
Hence in Ruby, I could do:

ruby -e '1.upto(10) { |a| puts a }'

But I couldn't do that in Java.  I could, however, do it in Smalltalk.

-- Thomas Adam

--  
"One of us is a cigar stand, and one of us is a lovely blue incandescent
guillotine" -- Stephen Malkmus, "Type Slowly" from "Brighten The Corners"




More information about the Sussex mailing list