[2693] in java-interest

home help back first fref pref prev next nref lref last post

object wrapper classes, like Float

daemon@ATHENA.MIT.EDU (Andruid Kerne)
Tue Oct 10 22:19:14 1995

Date: Tue, 10 Oct 95 20:28:54 EDT
From: andruid@SLINKY.CS.NYU.EDU (Andruid Kerne)
To: java-interest@java.sun.com

I was glad when i saw that Java has the capability to treat simple
data as first class objects.  However, upon close inspection, i am
very surprised to learn that such objects, are ... well, they're sort
of 2nd class, actually.  This is to say, that i can create such an
object, and i can then access its value, and get that value converted
in various ways, and send it messages, caused its subclassed on
Object.  What i can't do is change the value of this slot!  To
implement a set(float newValue) method is, of course, for the creator
of the Float class (and its sisters), trivial.  This
would make it much easier for me to do meta-manipulations on data
slots!  Is there some reason why this would be a bad idea?

Andruid Kerne
NYU Media Research Laboratory
	--and also--
Creative Media Cauldron
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post