[1409] in java-interest

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

Re: "perform:" and Java

daemon@ATHENA.MIT.EDU (Tako Schotanus)
Fri Sep 1 08:04:16 1995

Date: Fri, 1 Sep 95 10:08:55 +0200
To: "John D. Mitchell" <johnm@emf2-003.emf.net>
From: Tako Schotanus <Tako.Schotanus@bouw.tno.nl>
Cc: johnm@emf2-003.emf.net, java-interest@java.sun.com

At 14:05 31-08-95 +0200, Tako Schotanus wrote:
>At 02:06 31-08-95 -0700, John D. Mitchell wrote:
>>Tako Schotanus writes:
>>[...See Note at bottom of post...]
>>
>>> I'm currently working on a project in an OO extension of Tcl which uses
>>> exactly this mechanism... 
>>[...]
>>> In my project for example I have some objects that are all subclasses
>>> from a common base-class, they have a lot of code in common, but it's
>>> also possible that a specialized object has some method that is used only
>>> for a certain job. Now there are I think three ways of doing this:

Somebody (thanks Jim) kindly pointed out to me that my example given in
a previous post of mine could very well be handled by making an interface
for each such specialized method(s) and querying an object, with InstanceOf,
if it supports it. That's exactly what I would need and the current implementation
of Java would fit the bill perfectly. No doubt that somebody can come up
with a better example of how to use "perform:". My mistake for thinking
too much in terms of C++ I guess ;)

- Tako
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/               Tako Schotanus, TNO Bouwinformatica                    _/
_/   work: Lange Kleiweg 5, 2288 GH, Rijswijk, NL, tel: +31-15-842393   _/
_/       home: van Hasseltlaan 352, 2625 HZ, Delft, The Netherlands     _/
_/     E-mail: sst@bouw.tno.nl - URL: http://huizen.dds.nl/~quintess    _/
_/ Never let a dictator rule with peace; let peace rule like a dictator _/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

-
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