794
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ Don Clugston <dac@nospam.com.au>
|
|
6 // @date@ 2006-01-12
|
1489
|
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=6003
|
794
|
8
|
|
9 module dstress.run.t.template_24_D;
|
|
10
|
|
11 template whale(char [] walrus){
|
|
12 const char [] whale = walrus;
|
|
13 }
|
|
14
|
|
15 template dolphin(char [] fish){
|
|
16 const char [] dolphin = whale!(fish[(0) .. 3]);
|
|
17 }
|
|
18
|
|
19 const char[] urchin = dolphin!("anenome");
|
|
20
|
|
21 int main(){
|
|
22 assert(urchin == "ane");
|
|
23 return 0;
|
|
24 }
|
|
25
|