annotate compile/t/tuple_21_B.d @ 1630:d0efa3ae5522 default tip

run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author David Nadlinger <code@klickverbot.at>
date Sat, 23 Apr 2011 22:57:32 +0200
parents 5100b74e1aa3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1484
5100b74e1aa3 [Issue 938] struct with Tuple
thomask
parents:
diff changeset
1 // $HeadURL$
5100b74e1aa3 [Issue 938] struct with Tuple
thomask
parents:
diff changeset
2 // $Date$
5100b74e1aa3 [Issue 938] struct with Tuple
thomask
parents:
diff changeset
3 // $Author$
5100b74e1aa3 [Issue 938] struct with Tuple
thomask
parents:
diff changeset
4
5100b74e1aa3 [Issue 938] struct with Tuple
thomask
parents:
diff changeset
5 // @author@ Daniel <Daniel919@web.de>
5100b74e1aa3 [Issue 938] struct with Tuple
thomask
parents:
diff changeset
6 // @date@ 2007-02-07
5100b74e1aa3 [Issue 938] struct with Tuple
thomask
parents:
diff changeset
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=938
5100b74e1aa3 [Issue 938] struct with Tuple
thomask
parents:
diff changeset
8 // @desc@ [Issue 938] struct with Tuple
5100b74e1aa3 [Issue 938] struct with Tuple
thomask
parents:
diff changeset
9
5100b74e1aa3 [Issue 938] struct with Tuple
thomask
parents:
diff changeset
10 module dstress.compile.t.tuple_21_B;
5100b74e1aa3 [Issue 938] struct with Tuple
thomask
parents:
diff changeset
11
5100b74e1aa3 [Issue 938] struct with Tuple
thomask
parents:
diff changeset
12 template removeSpace(char[] s, int x = 0) {
5100b74e1aa3 [Issue 938] struct with Tuple
thomask
parents:
diff changeset
13 static if (s[0] == ' '){
5100b74e1aa3 [Issue 938] struct with Tuple
thomask
parents:
diff changeset
14 alias removeSpace!(s[1..$], x+1) removeSpace;
5100b74e1aa3 [Issue 938] struct with Tuple
thomask
parents:
diff changeset
15 }else{
5100b74e1aa3 [Issue 938] struct with Tuple
thomask
parents:
diff changeset
16 alias s removeSpace;
5100b74e1aa3 [Issue 938] struct with Tuple
thomask
parents:
diff changeset
17 }
5100b74e1aa3 [Issue 938] struct with Tuple
thomask
parents:
diff changeset
18 }
5100b74e1aa3 [Issue 938] struct with Tuple
thomask
parents:
diff changeset
19
5100b74e1aa3 [Issue 938] struct with Tuple
thomask
parents:
diff changeset
20 static assert("Hello you !" == removeSpace!(" Hello you !"));