Mercurial > projects > ldc
view tests/mini/compile_delegatetuple.d @ 962:a415d305477f
Fix 32 bit truncation of 'asm { movq RAX, 0xAA_1234_5678; }'...ie. move constant larger than 32 bits
author | Kelly Wilson <wilsonk cpsc.ucalgary.ca> |
---|---|
date | Sun, 15 Feb 2009 16:30:15 -0700 |
parents | cd7da2ba14d1 |
children |
line wrap: on
line source
alias char[] string; template Unstatic(T) { alias T Unstatic; } template Unstatic(T: T[]) { alias T[] Unstatic; } template StupleMembers(T...) { static if (T.length) { const int id=T[0..$-1].length; const string str=StupleMembers!(T[0..$-1]).str~"Unstatic!(T["~id.stringof~"]) _"~id.stringof~"; "; } else const string str=""; } struct Stuple(T...) { mixin(StupleMembers!(T).str); } Stuple!(string, void delegate(float)) foo;