Hi, Am 29.05.2009 um 18:28 schrieb CuppoJava:
I haven't thought of using an anonymous function. That cleans things up a bit. Meikel points out that it is sometimes desirable to have access to the original function though. I haven't had a need for it before, but it seems useful.
There are other subtle differences... Using an in place anonymous function suffers from the same problems as the macro. - You have to re-compile every code module using the macro when you change something in the anon fn. - You get a new anon function whenever call the macro. So the code size is increased. So you loose most of the advantages of using a function in the first place.. Sincerely Meikel
smime.p7s
Description: S/MIME cryptographic signature