what is the point of functor ?

Ali Çehreli acehreli at yahoo.com
Fri Jun 22 18:25:48 UTC 2018


On 06/22/2018 08:17 AM, Steven Schveighoffer wrote:

 > reason to use functors

I wonder whether they are more efficient because a functor would carry 
just the state that it needs. Also, there is no GC memory allocation 
unless the programmer wants to.

I wonder how much state is allocated for a delegate?

Ali



More information about the Digitalmars-d-learn mailing list