annotate tests/mini/compile_delegatetuple.d @ 1651:cb960b882ca3 tip

bindings were moved to dsource.org/projects/bindings/
author Moritz Warning <moritzwarning@web.de>
date Thu, 20 May 2010 20:05:03 +0200
parents cd7da2ba14d1
children
rev   line source
kamm@772 1 alias char[] string;
kamm@772 2 template Unstatic(T) { alias T Unstatic; }
kamm@772 3 template Unstatic(T: T[]) { alias T[] Unstatic; }
kamm@772 4 template StupleMembers(T...) {
kamm@772 5 static if (T.length) {
kamm@772 6 const int id=T[0..$-1].length;
kamm@772 7 const string str=StupleMembers!(T[0..$-1]).str~"Unstatic!(T["~id.stringof~"]) _"~id.stringof~"; ";
kamm@772 8 } else const string str="";
kamm@772 9 }
kamm@772 10
kamm@772 11 struct Stuple(T...) {
kamm@772 12 mixin(StupleMembers!(T).str);
kamm@772 13 }
kamm@772 14 Stuple!(string, void delegate(float)) foo;