Peter,
Whew! I was afraid I was going to have to respond to your instanceof
example! ;-)
> So to rephrase my last email, this would look like [...]
Yes.
> I've renamed the get call to getInterface because I would want it to be
> distinguished from the current get method which just returns attributes.
Fine with me. It is legally overloaded, but compared to the instanceof
approach, I really don't care if the method is called "mary" so long as the
semantic is preserved (assuming that people agree with the semantic).
> IMO, the getInterface argument list should be narrow (i.e.
> if the requisite interface is not found it should throw an exception
I wasn't going to get into the error handling before seeing if people agreed
with the basic idea. :-) I didn't want an argument over a null return
value (normal for a get method) or exception handling to get in the way. I
can live with either.
--- Noel
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>