Index:
[thread]
[date]
[subject]
[author]
From: Michael Abernethy <mna@duke.edu>
To :
Date: Mon, 26 Apr 1999 16:38:03 -0400
instanceof
As I try to eliminate all our instaces of instanceof, I have thought of a
couple of ways to get around using this. Most of these are hacks around
the problems, but was wondering if the following would be considered a hack.
instead of using instanceof, just calling the fuction we want like
(SuperClass).doSomething()
and then catching the ClassCastException
would this still be considered a hack, or is this now suddenly legitimate
good code?
Mike Abernethy
Index:
[thread]
[date]
[subject]
[author]