dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [DotGNU]Re: Support Java for .GNU


From: Martin Coxall
Subject: Re: [DotGNU]Re: Support Java for .GNU
Date: Wed, 18 Jul 2001 16:41:00 +0100

> This is what is so great about Java.  Everything is reference by object. 
> For instance primitive type should be Char object rather than char.  If you
> use char in your program in an OOP class, I think you will get points
> deducted.

I rather get that you don't fully understand the difference between reference 
types and value types. One of the problems of learning java from the straight 
off, is that it is difficult to observe its flaws from the inside. Learn some 
c++, then see what useful functionality Java takes away from you.

In c#, unlike Java, everything is an object, including the "primitives". ints 
are, in fact, System.int32. Except, you get these as pass-by-value objects 
instead of pass-by-reference. The fact that you *only* get reference types is 
a glaring omission from Java, and may be rectified one day, according to 
Gosling.

Strings *should* be value types, and they are in c#.

---
Martin
---

"Where laughing and smiling are not allowed"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]