delegate bug?
    Manfred Nowak 
    svv1999 at hotmail.com
       
    Fri Nov  9 10:30:48 PST 2012
    
    
  
Jack Applegame wrote:
> Ok. Then how to implement in D this С++ std::function feature?
> 
> http://liveworkspace.org/code/01aa058901529f65cb9a3cc4ba605248
That feature is among others defined here: 
http://en.cppreference.com/w/cpp/utility/functional/function
As one might see it is a template, defined in a library.
Therefore the first question is, wether D has a similar template in a 
library---and secondly: without such a template in a library: how to 
implement the base functionality in a non-generic case.
Because this is a learning group and not a teaching group--and you did 
not report on your fruitless tries: go on.
-manfred
    
    
More information about the Digitalmars-d-learn
mailing list