are functions always compiled into anonymous classes?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

are functions always compiled into anonymous classes?

Dennis Haupt-2
or are they converted to methods in case of functions like "(i:int) => i *5"
because in some cases, there's no need to make it a class.
Reply | Threaded
Open this post in threaded view
|

Re: are functions always compiled into anonymous classes?

Naftoli Gugenheim
Do you have a specific example?

On Fri, Nov 19, 2010 at 12:41 PM, HamsterofDeath <[hidden email]> wrote:
or are they converted to methods in case of functions like "(i:int) => i *5"
because in some cases, there's no need to make it a class.