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.

Reply via email to