[Issue 1807] ENHANCEMENT: Let IFTI "see through" templates to simple aliases

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 2 14:10:02 PDT 2008


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


shro8822 at vandals.uidaho.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |shro8822 at vandals.uidaho.edu




------- Comment #2 from shro8822 at vandals.uidaho.edu  2008-07-02 16:10 -------

BUMP

Another cases where this would be handy

public template Foo(T: char) {alias Foo_dwc!(T) Foo; }
public template Foo(T: wchar) {alias Foo_dwc!(T) Foo; }
public template Foo(T: dchar) {alias Foo_dwc!(T) Foo; }

private void Foo_dwc(T)(T arg) { }

void main(char[][] args)
{
Foo('a');
}


-- 



More information about the Digitalmars-d-bugs mailing list