[3094] in java-interest

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

Re: object-oriented feature not supported: why??

daemon@ATHENA.MIT.EDU (Jim Graham)
Mon Oct 30 19:57:09 1995

Date: Mon, 30 Oct 1995 14:45:21 -0800
From: flar@bendenweyr.Eng.Sun.COM (Jim Graham)
To: java-interest@java.Eng.Sun.COM, andruid@SPARKY.CS.NYU.EDU


Hi Andruid,

> Then if Java is an object-oriented language, you'd like to be able to say
> 
> 	ObjectX	newObjectX = new objectX.getClass()(objectX);
> 
> However, the compiler says
> 
> 	'new(...)' not supported.
> 
> Are there any plans to support this kind of construction??

Class Object has copy(Object o) and clone() methods.

				...jim
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

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