Glen Mazza wrote:
Well, instanceof is slower I believe, but better self-commenting.
Instanceof is exactly as fast as a simple function call after warm-up.
That's very useful to know. instanceof has had a very bad press.
Peter -- Peter B. West <http://www.powerup.com.au/~pbwest/resume.html>