http://d.puremagic.com/issues/show_bug.cgi?id=2972


Andrei Alexandrescu <and...@metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |and...@metalanguage.com
            Summary|Can't overload              |[tdpl] Can't overload
                   |non-templated function      |non-templated function
                   |against template            |against template


--- Comment #2 from Andrei Alexandrescu <and...@metalanguage.com> 2011-12-07 
14:31:24 PST ---
Breaks TDPL example, stylized below:

module main;

import std.stdio;

void overloadme(uint number)
{
    writeln("This is overloadme with uint.");
}

void overloadme(long number)
{
    writeln("This is overloadme with long.");
}

void overloadme(T)(T number)
{
    writeln("Generic overloadme called.");
}

int main(string[] argv)
{
    overloadme(25);
    overloadme("Bla");

    writeln("\nFinished");
    readln();
    return 0;
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to