function XXXX conflict with YYYY
    evilrat 
    evilrat666 at gmail.com
       
    Thu Nov 14 08:45:02 PST 2013
    
    
  
On Thursday, 14 November 2013 at 16:27:39 UTC, Agustin wrote:
> final uint registerEvent(T, J)(IPlugin, void delegate(J))
> {
>  ....
> }
>
> final uint registerEvent(IPlugin, EventHandler, EventInfo, 
> ulong)
> {
>  ....
> }
>
> There seems to be a problem when having two function with same 
> name but different parameters. Only happend when one of the 
> function use templates. Is that a compiler limitation?
this is by design. templates are generic so they can take 
anything(by default), this way shadowing specialized functions 
which is more suitable for certain types.
    
    
More information about the Digitalmars-d-learn
mailing list