What's left for 1.0?
    Kirk McDonald 
    kirklin.mcdonald at gmail.com
       
    Tue Nov 28 18:15:52 PST 2006
    
    
  
Bill Baxter wrote:
> Kirk McDonald wrote:
>> In writing Pyd, I've come to the conclusion that if you have a 
>> template that accepts an arbitrary function as an alias parameter (and 
>> then does anything involving the type of that function), you should 
>> always have a second parameter representing the type of the function. 
>> (And you can easily make this second parameter have a default value of 
>> typeof(&fn).) In this way the user can be sure the template is getting 
>> the proper overload of the function.
> 
> If you had some extra condition like "I want to match the version with 
> the most arguments" can you think of some way to make that work with the 
> current D?
> 
> --bb
No, because there is no way to get another overload of a function beyond 
the first without knowing the type of the overload.
-- 
Kirk McDonald
Pyd: Wrapping Python with D
http://pyd.dsource.org
    
    
More information about the Digitalmars-d
mailing list