Re: Re: Curious about method handling
James Reeves <[email protected]> Fri, 5 Aug 2005 21:53:00 +0100
| Newsgroups | gmane.comp.lang.nice.general |
|---|---|
| Message-ID | <[email protected]> |
On Friday 05 Aug 2005 21:28, Isaac Gouy wrote:
> Then you had no reason to brush off my restatement of the original
> question - it's still unanswered.
>
> f
> f()
>
> vs
>
> new A().getClass().getMethod("g", null)
> new A().g()
That's a far neater summation of my original question than my hundred line
mini-essay :)
( Although "new A().getClass().getMethod("g", null)" is not quite analogous to
"f", since the former returns a java.lang.reflect.Method object, whilst the
latter returns a nice method. )
--
James Reeves
http://www.monkeyengines.co.uk/
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf