[5478] in java-interest

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

Copy Constructors, and other Missing Links

daemon@ATHENA.MIT.EDU (Reginald Braithwaite-Lee)
Mon Feb 12 02:19:29 1996

Date: Mon, 12 Feb 1996 00:47:33 -0400
To: java-interest@java.sun.com
From: opendocguy@codestorm.com (Reginald Braithwaite-Lee)

Hello:

I'm learning Java the old fashioned way, by re-writing some of the sample
applications using my preferred OO style(s). The main problem I'm having is
specifying new classes without a copy constructor and assignment overload.

Am I missing something, or is it impossible to do?

I *need* this. For example, I'm implementing dependency networks, similar
to Digitalk SmallTalk's SharedValue. What I would do in C++ is overload
assignment so that modifications to the value would send update() messages
to a SharedValue's dependents. My workaround is to use a setValue(...)
method.

Also, are there standard collection classes such as Bag or Set? If so,where
are they documented?

And finally, how does one write envelope classes (or handler classes, if
you prefer)? I can't seem to find any reference to either pointer
dereference overloading, or to method dispatching (sendMessage:#foo in
SmallTalk terms).

Am I missing some simpler, more elegant approach which removes the need for
these constructions, or are they simply not needed at this time? Or have I
simply missedome important documentation?

Thanks in advance...


-
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