annotate compile/i/interpret_06_A.d @ 1530:1665114e9a64

[Issue 1177] $ no longer works inside CTFE functions. Don Clugston <clugdbug@yahoo.com.au> 2007-04-23 http://d.puremagic.com/issues/show_bug.cgi?id=1177
author thomask
date Fri, 27 Apr 2007 17:33:23 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1530
1665114e9a64 [Issue 1177] $ no longer works inside CTFE functions.
thomask
parents:
diff changeset
1 // $HeadURL$
1665114e9a64 [Issue 1177] $ no longer works inside CTFE functions.
thomask
parents:
diff changeset
2 // $Date$
1665114e9a64 [Issue 1177] $ no longer works inside CTFE functions.
thomask
parents:
diff changeset
3 // $Author$
1665114e9a64 [Issue 1177] $ no longer works inside CTFE functions.
thomask
parents:
diff changeset
4
1665114e9a64 [Issue 1177] $ no longer works inside CTFE functions.
thomask
parents:
diff changeset
5 // @author@ Don Clugston <clugdbug@yahoo.com.au>
1665114e9a64 [Issue 1177] $ no longer works inside CTFE functions.
thomask
parents:
diff changeset
6 // @date@ 2007-04-23
1665114e9a64 [Issue 1177] $ no longer works inside CTFE functions.
thomask
parents:
diff changeset
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1177
1665114e9a64 [Issue 1177] $ no longer works inside CTFE functions.
thomask
parents:
diff changeset
8 // @desc@ [Issue 1177] $ no longer works inside CTFE functions.
1665114e9a64 [Issue 1177] $ no longer works inside CTFE functions.
thomask
parents:
diff changeset
9
1665114e9a64 [Issue 1177] $ no longer works inside CTFE functions.
thomask
parents:
diff changeset
10 module dstress.compile.i.interpret_06_A;
1665114e9a64 [Issue 1177] $ no longer works inside CTFE functions.
thomask
parents:
diff changeset
11
1665114e9a64 [Issue 1177] $ no longer works inside CTFE functions.
thomask
parents:
diff changeset
12 bool b(char[] a){
1665114e9a64 [Issue 1177] $ no longer works inside CTFE functions.
thomask
parents:
diff changeset
13 return (a[$-1]=='b');
1665114e9a64 [Issue 1177] $ no longer works inside CTFE functions.
thomask
parents:
diff changeset
14 }
1665114e9a64 [Issue 1177] $ no longer works inside CTFE functions.
thomask
parents:
diff changeset
15
1665114e9a64 [Issue 1177] $ no longer works inside CTFE functions.
thomask
parents:
diff changeset
16 static assert(!b("abc"));
1665114e9a64 [Issue 1177] $ no longer works inside CTFE functions.
thomask
parents:
diff changeset
17 static assert(b("b"));