function XXXX conflict with YYYY

bearophile bearophileHUGS at lycos.com
Thu Nov 14 08:54:14 PST 2013


Agustin:

> 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?

Have you tried an updated DMD compiler? I think this was recently 
fixed.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list