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





------- Comment #2 from to...@famolsen.dk  2009-03-02 22:45 -------
Ok the second one makes a little sense. but what about this one:

template newTB(char[] c, char[] d)
{
    const newTB = mixin(c~"+"~d);
}

int a=1, b=2;

void main()
{
    auto c = newTB!("a", "b");
    printf("%d\n", c);
    a = 4;
    b = 6;
    c = newTB!("a", "b");
    printf("%d\n", c);
}

extern(C) int printf(char*, ...);

/*
[to...@myhost tests]$ dmd bar.d
[to...@myhost tests]$ ./bar
3
10
*/

?


-- 

Reply via email to