Function overload pointers
    Christopher Wright 
    dhasenan at gmail.com
       
    Fri Nov  7 04:21:52 PST 2008
    
    
  
Daniel Ribeiro Maciel wrote:
> I'm having a problem to pass function overload pointers. I have the following situation:
> 
> void foo() { writefln( "hello" ); }
> void foo(int i) { writefln( "hello 1 int ", i ); }
> void foo(int i, int j) { writefln( "hello 2 int ", i, " ", j ); }
> 
> I need to be able to build a tuple of all "foo"'s overloads such in as __traits( getVirtualFunctions, ... ), but "foo" is not virtual. Is it possible?
Yes, because __traits(getVirtualFunctions) returns final functions. Once 
that bug is fixed, it won't be nearly as possible.
> Best regards,
> Daniel
    
    
More information about the Digitalmars-d-learn
mailing list