Re: Re: Curious about method handling
Isaac Gouy <[email protected]> Fri, 5 Aug 2005 10:22:41 -0700 (PDT)
| Newsgroups | gmane.comp.lang.nice.general |
|---|---|
| Message-ID | <[email protected]> |
Maybe I'm missing the point of the original question, or maybe you're
missing the point of the original question ;-)
For a function, we can both refer to the function and refer to the
result of the function:
f
f()
I think the original questioner wanted to have those same two kinds of
reference but for an object method:
new A().g
new A().g()
afaik, unlike the function syntax, "new A().g" is just a short version
of "new A().g()" and does exactly the same thing - it evaluates the
method and returns a result.
I think the original questioner asked how to reference an object method
without evaluating the method:=20
new A().getClass().getMethod("g", null)
which doesn't look much like:
new A().g
=09
____________________________________________________
Start your day with Yahoo! - make it your home page=20
http://www.yahoo.com/r/hs=20
=20
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practic=
es
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & Q=
A
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf