D - Alias bug (member templates)
- Ivan Senji (22/22) Feb 04 2004 With the following code the alias doesn't work but it should!
With the following code the alias doesn't work but it should! class set(SetType) { template transform(FUNC) { static FUNC transform(FUNC f, inout set a) { //... } } } alias set!(int) IntegerSet; int square(in int x) { return x*x; } in main: IntegerSet set1 = new IntegerSet(); //this works: set!(int).transform!(typeof(&square))(&square,set1); //this doesnt work: IntegerSet.transform!(typeof(&square))(&square,set1);
Feb 04 2004