Mercurial > projects > dstress
view run/t/template_24_F.d @ 794:60f62efe116d
Don Clugston <dac@nospam.com.au>
2006-01-12
news:dq56n3$5n7$1@digitaldaemon.com
author | thomask |
---|---|
date | Sun, 15 Jan 2006 11:19:36 +0000 |
parents | |
children | b8c0195059d9 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Don Clugston <dac@nospam.com.au> // @date@ 2006-01-12 // @uri@ news:dq56n3$5n7$1@digitaldaemon.com module dstress.run.t.template_24_F; template whale(char [] walrus){ const char [] whale = walrus; } template dolphin(char [] fish){ const char [] dolphin = whale!(fish[0 .. 3]); } const char[] urchin = dolphin!("anenome"); int main(){ static assert(urchin == "ane"); return 0; }