# HG changeset patch # User thomask # Date 1187550901 0 # Node ID 36bedfa079e63f859932483fbd7a0f7fa581e25e # Parent ec5e144583ea813edff9250e481b33181843075c D1 -> D2 : 2/N diff -r ec5e144583ea -r 36bedfa079e6 nocompile/b/bug_expression_5981_A.d --- a/nocompile/b/bug_expression_5981_A.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/b/bug_expression_5981_A.d Sun Aug 19 19:15:01 2007 +0000 @@ -11,7 +11,7 @@ module dstress.nocompile.b.bug_expression_5981_A; -template g(char[] s){ +template g(string s){ } void foo(){ diff -r ec5e144583ea -r 36bedfa079e6 nocompile/d/delete_09_A.d --- a/nocompile/d/delete_09_A.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/d/delete_09_A.d Sun Aug 19 19:15:01 2007 +0000 @@ -10,8 +10,8 @@ module dstress.nocompile.d.delete_09_A; -alias char[] string; +alias string XX; -void test(string[int] arr, int key ){ +void test(XX[int] arr, int key ){ delete arr[ key ]; } diff -r ec5e144583ea -r 36bedfa079e6 nocompile/d/delete_09_B.d --- a/nocompile/d/delete_09_B.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/d/delete_09_B.d Sun Aug 19 19:15:01 2007 +0000 @@ -10,8 +10,8 @@ module dstress.nocompile.d.delete_09_B; -alias char string; +alias char XX; -void test(string[int] arr, int key ){ +void test(XX[int] arr, int key ){ delete arr[ key ]; } diff -r ec5e144583ea -r 36bedfa079e6 nocompile/d/delete_09_C.d --- a/nocompile/d/delete_09_C.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/d/delete_09_C.d Sun Aug 19 19:15:01 2007 +0000 @@ -10,8 +10,8 @@ module dstress.nocompile.d.delete_09_C; -typedef char[] string; +typedef char[] XX; -void test(string[int] arr, int key ){ +void test(X[int] arr, int key ){ delete arr[ key ]; } diff -r ec5e144583ea -r 36bedfa079e6 nocompile/d/delete_09_D.d --- a/nocompile/d/delete_09_D.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/d/delete_09_D.d Sun Aug 19 19:15:01 2007 +0000 @@ -10,8 +10,8 @@ module dstress.nocompile.d.delete_09_D; -typedef char string; +typedef char XX; -void test(string[int] arr, int key ){ +void test(XX[int] arr, int key ){ delete arr[ key ]; } diff -r ec5e144583ea -r 36bedfa079e6 nocompile/double_quoted_string_12.d --- a/nocompile/double_quoted_string_12.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/double_quoted_string_12.d Sun Aug 19 19:15:01 2007 +0000 @@ -7,6 +7,6 @@ module dstress.nocompile.double_quoted_string_12; int main(){ - char[] string="\A"; + string x="\A"; return 0; } diff -r ec5e144583ea -r 36bedfa079e6 nocompile/double_quoted_string_13.d --- a/nocompile/double_quoted_string_13.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/double_quoted_string_13.d Sun Aug 19 19:15:01 2007 +0000 @@ -7,6 +7,6 @@ module dstress.nocompile.double_quoted_string_13; int main(){ - char[] string="\B"; + string x ="\B"; return 0; } diff -r ec5e144583ea -r 36bedfa079e6 nocompile/double_quoted_string_14.d --- a/nocompile/double_quoted_string_14.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/double_quoted_string_14.d Sun Aug 19 19:15:01 2007 +0000 @@ -7,6 +7,6 @@ module dstress.nocompile.double_quoted_string_14; int main(){ - char[] string="\c"; + string x="\c"; return 0; } diff -r ec5e144583ea -r 36bedfa079e6 nocompile/double_quoted_string_15.d --- a/nocompile/double_quoted_string_15.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/double_quoted_string_15.d Sun Aug 19 19:15:01 2007 +0000 @@ -7,6 +7,6 @@ module dstress.nocompile.double_quoted_string_15; int main(){ - char[] string="\C"; + string x="\C"; return 0; } diff -r ec5e144583ea -r 36bedfa079e6 nocompile/double_quoted_string_16.d --- a/nocompile/double_quoted_string_16.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/double_quoted_string_16.d Sun Aug 19 19:15:01 2007 +0000 @@ -7,6 +7,6 @@ module dstress.nocompile.double_quoted_string_16; int main(){ - char[] string="\!"; + string x="\!"; return 0; } diff -r ec5e144583ea -r 36bedfa079e6 nocompile/eol_string_01.d --- a/nocompile/eol_string_01.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/eol_string_01.d Sun Aug 19 19:15:01 2007 +0000 @@ -2,6 +2,8 @@ // $Date$ // $Author$ +// __DSTRESS_ELINE__ 9 + module dstress.nocompile.eol_string_01; -char[] s = "abc \ No newline at end of file +string s = "abc diff -r ec5e144583ea -r 36bedfa079e6 nocompile/eol_string_02.d Binary file nocompile/eol_string_02.d has changed diff -r ec5e144583ea -r 36bedfa079e6 nocompile/eol_string_03.d --- a/nocompile/eol_string_03.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/eol_string_03.d Sun Aug 19 19:15:01 2007 +0000 @@ -2,6 +2,8 @@ // $Date$ // $Author$ +// __DSTRESS_ELINE__ 9 + module dstress.nocompile.eol_string_03; -char[] s = "abc"; // U+001A \ No newline at end of file +char[] s = "abc"; // U+001A diff -r ec5e144583ea -r 36bedfa079e6 nocompile/eol_string_04.d --- a/nocompile/eol_string_04.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/eol_string_04.d Sun Aug 19 19:15:01 2007 +0000 @@ -2,6 +2,8 @@ // $Date$ // $Author$ +// __DSTRESS_ELINE__ 9 + module dstress.nocompile.eol_string_04; -char[] s = r"abc \ No newline at end of file +char[] s = r"abc diff -r ec5e144583ea -r 36bedfa079e6 nocompile/eol_string_05.d Binary file nocompile/eol_string_05.d has changed diff -r ec5e144583ea -r 36bedfa079e6 nocompile/eol_string_06.d --- a/nocompile/eol_string_06.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/eol_string_06.d Sun Aug 19 19:15:01 2007 +0000 @@ -2,6 +2,8 @@ // $Date$ // $Author$ +// __DSTRESS_ELINE__ 9 + module dstress.nocompile.eol_string_06; -char[] s = r"abc"; // U+001A \ No newline at end of file +string s = r"abc"; // U+001A diff -r ec5e144583ea -r 36bedfa079e6 nocompile/eol_string_07.d --- a/nocompile/eol_string_07.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/eol_string_07.d Sun Aug 19 19:15:01 2007 +0000 @@ -2,6 +2,8 @@ // $Date$ // $Author$ +// __DSTRESS_ELINE__ 9 + module dstress.nocompile.eol_string_07; -char[] s = x"AA \ No newline at end of file +string s = x"AA diff -r ec5e144583ea -r 36bedfa079e6 nocompile/eol_string_08.d Binary file nocompile/eol_string_08.d has changed diff -r ec5e144583ea -r 36bedfa079e6 nocompile/eol_string_09.d --- a/nocompile/eol_string_09.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/eol_string_09.d Sun Aug 19 19:15:01 2007 +0000 @@ -2,6 +2,8 @@ // $Date$ // $Author$ +// __DSTRESS_ELINE__ 9 + module dstress.nocompile.eol_string_09; -char[] s = x"AA"; // U+001A \ No newline at end of file +string s = x"AA"; // U+001A diff -r ec5e144583ea -r 36bedfa079e6 nocompile/eol_string_10.d --- a/nocompile/eol_string_10.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/eol_string_10.d Sun Aug 19 19:15:01 2007 +0000 @@ -2,6 +2,8 @@ // $Date$ // $Author$ +// __DSTRESS_ELINE__ 9 + module dstress.nocompile.eol_string_10; -char[] s = `A`; // U+001A \ No newline at end of file +string s = `A`; // U+001A diff -r ec5e144583ea -r 36bedfa079e6 nocompile/eol_string_11.d Binary file nocompile/eol_string_11.d has changed diff -r ec5e144583ea -r 36bedfa079e6 nocompile/eol_string_12.d --- a/nocompile/eol_string_12.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/eol_string_12.d Sun Aug 19 19:15:01 2007 +0000 @@ -2,6 +2,8 @@ // $Date$ // $Author$ -module dstress.nocompile.eol_string_12 +// __DSTRESS_ELINE__ 9 -char[] s = `A \ No newline at end of file +module dstress.nocompile.eol_string_12; + +string s = `A diff -r ec5e144583ea -r 36bedfa079e6 nocompile/escape_hex_02.d --- a/nocompile/escape_hex_02.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/escape_hex_02.d Sun Aug 19 19:15:01 2007 +0000 @@ -7,6 +7,6 @@ module dstress.nocompile.escape_hex_02; int main(){ - char[] string="\x9G"; + auto x = "\x9G"; return 0; } diff -r ec5e144583ea -r 36bedfa079e6 nocompile/escape_hex_string_03.d --- a/nocompile/escape_hex_string_03.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/escape_hex_string_03.d Sun Aug 19 19:15:01 2007 +0000 @@ -7,6 +7,6 @@ module dstress.nocompile.escape_hex_string_03; int main(){ - char[] string=x"1G"; + auto x = x"1G"; return 0; } diff -r ec5e144583ea -r 36bedfa079e6 nocompile/escape_hex_string_04.d --- a/nocompile/escape_hex_string_04.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/escape_hex_string_04.d Sun Aug 19 19:15:01 2007 +0000 @@ -7,6 +7,6 @@ module dsress.nocompile.escape_hex_string_04; int main(){ - char[] string=x"123"; + auto x = x"123"; return 0; } diff -r ec5e144583ea -r 36bedfa079e6 nocompile/escape_octal_02.d --- a/nocompile/escape_octal_02.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/escape_octal_02.d Sun Aug 19 19:15:01 2007 +0000 @@ -7,6 +7,6 @@ module dstress.nocompile.escape_octal_02; int main(){ - char[] string="\"; + string x="\"; return 0; } diff -r ec5e144583ea -r 36bedfa079e6 nocompile/escape_unicode16_03.d --- a/nocompile/escape_unicode16_03.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/escape_unicode16_03.d Sun Aug 19 19:15:01 2007 +0000 @@ -1,4 +1,12 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// __DSTRESS_ELINE__ 10 + +module dstress.nocompile.escape_unicode16_03; + int main(){ - char[] string="\u1"; + auto x = "\u1"; return 0; } diff -r ec5e144583ea -r 36bedfa079e6 nocompile/escape_unicode16_04.d --- a/nocompile/escape_unicode16_04.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/escape_unicode16_04.d Sun Aug 19 19:15:01 2007 +0000 @@ -1,4 +1,12 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// __DSTRESS_ELINE__ 10 + +module dstress.nocompile.escape_unicode16_04; + int main(){ - char[] string="\u12"; + auto x = "\u12"; return 0; } diff -r ec5e144583ea -r 36bedfa079e6 nocompile/escape_unicode16_05.d --- a/nocompile/escape_unicode16_05.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/escape_unicode16_05.d Sun Aug 19 19:15:01 2007 +0000 @@ -1,4 +1,12 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// __DSTRESS_ELINE__ 10 + +module dstress.nocompile.escape_unicode16_05; + int main(){ - char[] string="\u123"; + auto x = "\u123"; return 0; } diff -r ec5e144583ea -r 36bedfa079e6 nocompile/escape_unicode16_06.d --- a/nocompile/escape_unicode16_06.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/escape_unicode16_06.d Sun Aug 19 19:15:01 2007 +0000 @@ -1,4 +1,12 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// __DSTRESS_ELINE__ 10 + +module dstress.nocompile.escape_unicode16_06; + int main(){ - char[] string="\u1G12"; + auto x = "\u1G12"; return 0; } diff -r ec5e144583ea -r 36bedfa079e6 nocompile/escape_unicode32_04.d --- a/nocompile/escape_unicode32_04.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/escape_unicode32_04.d Sun Aug 19 19:15:01 2007 +0000 @@ -1,4 +1,12 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// __DSTRESS_ELINE__ 10 + +module dstress.nocompile.escape_unicode32_04; + int main(){ - char[] string="\U0000000G"; + auto x ="\U0000000G"; return 0; } diff -r ec5e144583ea -r 36bedfa079e6 nocompile/escape_unicode32_05.d --- a/nocompile/escape_unicode32_05.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/escape_unicode32_05.d Sun Aug 19 19:15:01 2007 +0000 @@ -1,4 +1,12 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// __DSTRESS_ELINE__ 10 + +module dstress.nocompile.escape_unicode32_05; + int main(){ - char[] string="\U"; + auto x = "\U"; return 0; } diff -r ec5e144583ea -r 36bedfa079e6 nocompile/escape_unicode32_06.d --- a/nocompile/escape_unicode32_06.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/escape_unicode32_06.d Sun Aug 19 19:15:01 2007 +0000 @@ -1,4 +1,12 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// __DSTRESS_ELINE__ 10 + +module dstress.nocompile.escape_unicode32_06; + int main(){ - char[] string="\U0"; + auto x = "\U0"; return 0; } diff -r ec5e144583ea -r 36bedfa079e6 nocompile/escape_unicode32_07.d --- a/nocompile/escape_unicode32_07.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/escape_unicode32_07.d Sun Aug 19 19:15:01 2007 +0000 @@ -1,4 +1,12 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// __DSTRESS_ELINE__ 10 + +module dstress.nocompile.escape_unicode32_07; + int main(){ - char[] string="\U00"; + auto x="\U00"; return 0; } diff -r ec5e144583ea -r 36bedfa079e6 nocompile/escape_unicode32_08.d --- a/nocompile/escape_unicode32_08.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/escape_unicode32_08.d Sun Aug 19 19:15:01 2007 +0000 @@ -1,4 +1,12 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// __DSTRESS_ELINE__ 10 + +module dstress.nocompile.escape_unicode32_08; + int main(){ - char[] string="\U000"; + auto x="\U000"; return 0; } diff -r ec5e144583ea -r 36bedfa079e6 nocompile/escape_unicode32_09.d --- a/nocompile/escape_unicode32_09.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/escape_unicode32_09.d Sun Aug 19 19:15:01 2007 +0000 @@ -1,4 +1,12 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// __DSTRESS_ELINE__ 10 + +module dstress.nocompile.escape_unicode32_09; + int main(){ - char[] string="\U0000"; + auto x="\U0000"; return 0; } diff -r ec5e144583ea -r 36bedfa079e6 nocompile/escape_unicode32_10.d --- a/nocompile/escape_unicode32_10.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/escape_unicode32_10.d Sun Aug 19 19:15:01 2007 +0000 @@ -1,4 +1,12 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// __DSTRESS_ELINE__ 10 + +module dstress.nocompile.escape_unicode32_10; + int main(){ - char[] string="\U00000"; + auto x="\U00000"; return 0; } diff -r ec5e144583ea -r 36bedfa079e6 nocompile/escape_unicode32_11.d --- a/nocompile/escape_unicode32_11.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/escape_unicode32_11.d Sun Aug 19 19:15:01 2007 +0000 @@ -1,4 +1,12 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// __DSTRESS_ELINE__ 10 + +module dstress.nocompile.escape_unicode32_11; + int main(){ - char[] string="\U000000"; + auto x="\U000000"; return 0; } diff -r ec5e144583ea -r 36bedfa079e6 nocompile/escape_unicode32_12.d --- a/nocompile/escape_unicode32_12.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/escape_unicode32_12.d Sun Aug 19 19:15:01 2007 +0000 @@ -1,4 +1,12 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// __DSTRESS_ELINE__ 10 + +module dstress.nocompile.escape_unicode32_12; + int main(){ - char[] string="\U0000000"; + auto x = "\U0000000"; return 0; } diff -r ec5e144583ea -r 36bedfa079e6 nocompile/foreach_17.d --- a/nocompile/foreach_17.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/foreach_17.d Sun Aug 19 19:15:01 2007 +0000 @@ -9,8 +9,8 @@ module dstress.nocompile.foreach_17; int main(){ - char[] string; - foreach(in char c; string){ + string x = "ab"; + foreach(in char c; x){ } return 0; } diff -r ec5e144583ea -r 36bedfa079e6 nocompile/foreach_18.d --- a/nocompile/foreach_18.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/foreach_18.d Sun Aug 19 19:15:01 2007 +0000 @@ -9,8 +9,8 @@ module dstress.nocompile.foreach_18; int main(){ - char[] string; - foreach(out char c; string){ + string x = "av"; + foreach(out char c; x){ } return 0; } diff -r ec5e144583ea -r 36bedfa079e6 nocompile/foreach_19.d --- a/nocompile/foreach_19.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/foreach_19.d Sun Aug 19 19:15:01 2007 +0000 @@ -9,8 +9,8 @@ module dstress.nocompile.foreach_19; int main(){ - char[] string; - foreach(byte index, char c; string){ + string x = "ab"; + foreach(byte index, char c; x){ } return 0; } diff -r ec5e144583ea -r 36bedfa079e6 nocompile/foreach_20.d --- a/nocompile/foreach_20.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/foreach_20.d Sun Aug 19 19:15:01 2007 +0000 @@ -9,8 +9,8 @@ module dstress.nocompile.foreach_20; int main(){ - char[] string; - foreach(dchar index, char c; string){ + string x = "ab"; + foreach(dchar index, char c; x){ } return 0; } diff -r ec5e144583ea -r 36bedfa079e6 nocompile/foreach_21.d --- a/nocompile/foreach_21.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/foreach_21.d Sun Aug 19 19:15:01 2007 +0000 @@ -7,8 +7,8 @@ module dstress.nocompile.foreach_21; int main(){ - char[] string; - foreach(int c, char c; string){ + string x; + foreach(int c, char c; x){ } return 0; } diff -r ec5e144583ea -r 36bedfa079e6 nocompile/s/string_postfix_06_D.d --- a/nocompile/s/string_postfix_06_D.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/s/string_postfix_06_D.d Sun Aug 19 19:15:01 2007 +0000 @@ -6,13 +6,13 @@ module dstress.nocompile.s.string_postfix_06_D; -void test(char[] a){ +void test(string a){ } -void test(wchar[] a){ +void test(wstring a){ } -void test(dchar[] a){ +void test(dstring a){ } void main(){ diff -r ec5e144583ea -r 36bedfa079e6 nocompile/s/string_postfix_06_E.d --- a/nocompile/s/string_postfix_06_E.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/s/string_postfix_06_E.d Sun Aug 19 19:15:01 2007 +0000 @@ -6,13 +6,13 @@ module dstress.nocompile.s.string_postfix_06_E; -void test(char[] a){ +void test(string a){ } -void test(wchar[] a){ +void test(wstring a){ } -void test(dchar[] a){ +void test(dstring a){ } void main(){ diff -r ec5e144583ea -r 36bedfa079e6 nocompile/s/string_postfix_06_F.d --- a/nocompile/s/string_postfix_06_F.d Sun Aug 19 19:11:54 2007 +0000 +++ b/nocompile/s/string_postfix_06_F.d Sun Aug 19 19:15:01 2007 +0000 @@ -6,13 +6,13 @@ module dstress.nocompile.s.string_postfix_06_F; -void test(char[] a){ +void test(string a){ } -void test(wchar[] a){ +void test(wstring a){ } -void test(dchar[] a){ +void test(dstring a){ } void main(){ diff -r ec5e144583ea -r 36bedfa079e6 run/Alternate_Wysiwyg_String_01.d --- a/run/Alternate_Wysiwyg_String_01.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/Alternate_Wysiwyg_String_01.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,12 +5,12 @@ module dstress.run.Alternate_Wysiwyg_String_01; int main(){ - string string=`hello`; - if(5 != string.length){ assert(0); } - if('h' != string[0]){ assert(0); } - if('e' != string[1]){ assert(0); } - if('l' != string[2]){ assert(0); } - if('l' != string[3]){ assert(0); } - if('o' != string[4]){ assert(0); } + string x=`hello`; + if(5 != x.length){ assert(0); } + if('h' != x[0]){ assert(0); } + if('e' != x[1]){ assert(0); } + if('l' != x[2]){ assert(0); } + if('l' != x[3]){ assert(0); } + if('o' != x[4]){ assert(0); } return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/Alternate_Wysiwyg_String_02.d --- a/run/Alternate_Wysiwyg_String_02.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/Alternate_Wysiwyg_String_02.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,9 +5,9 @@ module dstress.run.Alternate_Wysiwyg_String_02; int main(){ - string string=`\'`; - if(2 != string.length){ assert(0); } - if('\\' != string[0]){ assert(0); } - if('\'' != string[1]){ assert(0); } + string x=`\'`; + if(2 != x.length){ assert(0); } + if('\\' != x[0]){ assert(0); } + if('\'' != x[1]){ assert(0); } return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/Alternate_Wysiwyg_String_03.d --- a/run/Alternate_Wysiwyg_String_03.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/Alternate_Wysiwyg_String_03.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,9 +5,9 @@ module dstress.run.Alternate_Wysiwyg_String_03; int main(){ - string string=`\v`; - if(2 != string.length){ assert(0); } - if('\\' != string[0]){ assert(0); } - if('v' != string[1]){ assert(0); } + string x=`\v`; + if(2 != x.length){ assert(0); } + if('\\' != x[0]){ assert(0); } + if('v' != x[1]){ assert(0); } return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/Wysiwyg_String_01.d --- a/run/Wysiwyg_String_01.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/Wysiwyg_String_01.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,12 +5,12 @@ module dstress.run.Wysiwyg_String_01; int main(){ - char[] string=r"hello"; - assert(string.length==5); - assert(string[0]=='h'); - assert(string[1]=='e'); - assert(string[2]=='l'); - assert(string[3]=='l'); - assert(string[4]=='o'); + string x=r"hello"; + assert(x.length==5); + assert(x[0]=='h'); + assert(x[1]=='e'); + assert(x[2]=='l'); + assert(x[3]=='l'); + assert(x[4]=='o'); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/Wysiwyg_String_02.d --- a/run/Wysiwyg_String_02.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/Wysiwyg_String_02.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,9 +5,9 @@ module dstress.run.Wysiwyg_String_02; int main(){ - char[] string=r"\'"; - assert(string.length==2); - assert(string[0]=='\\'); - assert(string[1]=='\''); + string x=r"\'"; + assert(x.length==2); + assert(x[0]=='\\'); + assert(x[1]=='\''); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/Wysiwyg_String_03.d --- a/run/Wysiwyg_String_03.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/Wysiwyg_String_03.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,9 +5,9 @@ module dstress.run.Wysiwyg_String_03; int main(){ - char[] string=r"\v"; - assert(string.length==2); - assert(string[0]=='\\'); - assert(string[1]=='v'); + string x=r"\v"; + assert(x.length==2); + assert(x[0]=='\\'); + assert(x[1]=='v'); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/Wysiwyg_String_04.d --- a/run/Wysiwyg_String_04.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/Wysiwyg_String_04.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,9 +5,9 @@ module dstress.run.Wysiwyg_String_04; int main(){ - char[] string=r"\?"; - assert(string.length==2); - assert(string[0]=='\\'); - assert(string[1]=='\?'); + string x=r"\?"; + assert(x.length==2); + assert(x[0]=='\\'); + assert(x[1]=='\?'); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/Wysiwyg_String_05.d --- a/run/Wysiwyg_String_05.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/Wysiwyg_String_05.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,9 +5,9 @@ module dstress.run.Wysiwyg_String_05; int main(){ - char[] string=r"\\"; - assert(string.length==2); - assert(string[0]=='\\'); - assert(string[1]=='\\'); + string x=r"\\"; + assert(x.length==2); + assert(x[0]=='\\'); + assert(x[1]=='\\'); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/Wysiwyg_String_06.d --- a/run/Wysiwyg_String_06.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/Wysiwyg_String_06.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,9 +5,9 @@ module dstress.run.Wysiwyg_String_06; int main(){ - char[] string=r"\a"; - assert(string.length==2); - assert(string[0]=='\\'); - assert(string[1]=='a'); + string x=r"\a"; + assert(x.length==2); + assert(x[0]=='\\'); + assert(x[1]=='a'); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/Wysiwyg_String_07.d --- a/run/Wysiwyg_String_07.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/Wysiwyg_String_07.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,9 +5,9 @@ module dstress.run.Wysiwyg_String_07; int main(){ - char[] string=r"\b"; - assert(string.length==2); - assert(string[0]=='\\'); - assert(string[1]=='b'); + string x=r"\b"; + assert(x.length==2); + assert(x[0]=='\\'); + assert(x[1]=='b'); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/Wysiwyg_String_08.d --- a/run/Wysiwyg_String_08.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/Wysiwyg_String_08.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,9 +5,9 @@ module dstress.run.Wysiwyg_String_08; int main(){ - char[] string=r"\f"; - assert(string.length==2); - assert(string[0]=='\\'); - assert(string[1]=='f'); + string x=r"\f"; + assert(x.length==2); + assert(x[0]=='\\'); + assert(x[1]=='f'); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/Wysiwyg_String_09.d --- a/run/Wysiwyg_String_09.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/Wysiwyg_String_09.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,9 +5,9 @@ module dstress.run.Wysiwyg_String_09; int main(){ - char[] string=r"\n"; - assert(string.length==2); - assert(string[0]=='\\'); - assert(string[1]=='n'); + string x=r"\n"; + assert(x.length==2); + assert(x[0]=='\\'); + assert(x[1]=='n'); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/Wysiwyg_String_10.d --- a/run/Wysiwyg_String_10.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/Wysiwyg_String_10.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,9 +5,9 @@ module dstress.run.Wysiwyg_String_10; int main(){ - char[] string=r"\r"; - assert(string.length==2); - assert(string[0]=='\\'); - assert(string[1]=='r'); + string x=r"\r"; + assert(x.length==2); + assert(x[0]=='\\'); + assert(x[1]=='r'); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/Wysiwyg_String_11.d --- a/run/Wysiwyg_String_11.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/Wysiwyg_String_11.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,9 +5,9 @@ module dstress.run.Wysiwyg_String_11; int main(){ - char[] string=r"\t"; - assert(string.length==2); - assert(string[0]=='\\'); - assert(string[1]=='t'); + string x=r"\t"; + assert(x.length==2); + assert(x[0]=='\\'); + assert(x[1]=='t'); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/Wysiwyg_String_12.d --- a/run/Wysiwyg_String_12.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/Wysiwyg_String_12.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,9 +5,9 @@ module dstress.run.Wysiwyg_String_12; int main(){ - char[] string=r"\x"; - assert(string.length==2); - assert(string[0]=='\\'); - assert(string[1]=='x'); + string x=r"\x"; + assert(x.length==2); + assert(x[0]=='\\'); + assert(x[1]=='x'); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/Wysiwyg_String_13.d --- a/run/Wysiwyg_String_13.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/Wysiwyg_String_13.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,9 +5,9 @@ module dstress.run.Wysiwyg_String_13; int main(){ - char[] string=r"\u"; - assert(string.length==2); - assert(string[0]=='\\'); - assert(string[1]=='u'); + string x=r"\u"; + assert(x.length==2); + assert(x[0]=='\\'); + assert(x[1]=='u'); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/Wysiwyg_String_14.d --- a/run/Wysiwyg_String_14.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/Wysiwyg_String_14.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,9 +5,9 @@ module dstress.run.Wysiwyg_String_14; int main(){ - char[] string=r"\U"; - assert(string.length==2); - assert(string[0]=='\\'); - assert(string[1]=='U'); + string x=r"\U"; + assert(x.length==2); + assert(x[0]=='\\'); + assert(x[1]=='U'); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/Wysiwyg_String_15.d --- a/run/Wysiwyg_String_15.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/Wysiwyg_String_15.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,9 +5,9 @@ module dstress.run.Wysiwyg_String_15; int main(){ - char[] string=r" + string x=r" "; - assert(string.length==1); - assert(string[0]=='\n'); + assert(x.length==1); + assert(x[0]=='\n'); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/a/auto_10_A.d --- a/run/a/auto_10_A.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/a/auto_10_A.d Sun Aug 19 19:15:01 2007 +0000 @@ -2,12 +2,12 @@ // $Date$ // $Author$ -module dstress.run.c.auto_10_A; +module dstress.run.a.auto_10_A; int main(){ auto x = 4.0; - if(typeid(typeof(x)).toString() != "double"){ + if("double" != typeid(typeof(x)).toString()){ assert(0); } diff -r ec5e144583ea -r 36bedfa079e6 run/a/auto_10_B.d --- a/run/a/auto_10_B.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/a/auto_10_B.d Sun Aug 19 19:15:01 2007 +0000 @@ -2,12 +2,12 @@ // $Date$ // $Author$ -module dstress.run.c.auto_10_B; +module dstress.run.a.auto_10_B; int main(){ auto x = 4; - if(typeid(typeof(x)).toString() != "int"){ + if("int" != typeid(typeof(x)).toString()){ assert(0); } diff -r ec5e144583ea -r 36bedfa079e6 run/a/auto_16_A.d --- a/run/a/auto_16_A.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/a/auto_16_A.d Sun Aug 19 19:15:01 2007 +0000 @@ -9,7 +9,7 @@ module dstress.run.a.auto_16_A; class C{ - char[] toString(){ + string toString(){ return "hallo bug"; } } diff -r ec5e144583ea -r 36bedfa079e6 run/a/auto_16_B.d --- a/run/a/auto_16_B.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/a/auto_16_B.d Sun Aug 19 19:15:01 2007 +0000 @@ -11,7 +11,7 @@ module dstress.run.a.auto_16_B; class C{ - char[] toString(){ + string toString(){ return "hallo bug"; } } diff -r ec5e144583ea -r 36bedfa079e6 run/a/auto_16_C.d --- a/run/a/auto_16_C.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/a/auto_16_C.d Sun Aug 19 19:15:01 2007 +0000 @@ -11,7 +11,7 @@ module dstress.run.a.auto_16_C; auto class C{ - char[] toString(){ + string toString(){ return "hallo bug"; } } diff -r ec5e144583ea -r 36bedfa079e6 run/a/auto_16_D.d --- a/run/a/auto_16_D.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/a/auto_16_D.d Sun Aug 19 19:15:01 2007 +0000 @@ -11,7 +11,7 @@ module dstress.run.a.auto_16_D; auto class C{ - char[] toString(){ + string toString(){ return "hallo bug"; } } diff -r ec5e144583ea -r 36bedfa079e6 run/a/auto_16_E.d --- a/run/a/auto_16_E.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/a/auto_16_E.d Sun Aug 19 19:15:01 2007 +0000 @@ -11,7 +11,7 @@ module dstress.run.a.auto_16_E; class C{ - char[] toString(){ + string toString(){ return "hallo bug"; } } diff -r ec5e144583ea -r 36bedfa079e6 run/a/auto_16_F.d --- a/run/a/auto_16_F.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/a/auto_16_F.d Sun Aug 19 19:15:01 2007 +0000 @@ -11,7 +11,7 @@ module dstress.run.a.auto_16_F; class C{ - char[] toString(){ + string toString(){ return "hallo bug"; } } diff -r ec5e144583ea -r 36bedfa079e6 run/b/bug_expression_5981_B.d --- a/run/b/bug_expression_5981_B.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/b/bug_expression_5981_B.d Sun Aug 19 19:15:01 2007 +0000 @@ -12,7 +12,7 @@ int main(){ auto x = ([""]~[])[0]; - if(is(typeof(x) : char[])){ + if(is(typeof(x) : string)){ return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/c/case_02.d --- a/run/c/case_02.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/c/case_02.d Sun Aug 19 19:15:01 2007 +0000 @@ -9,11 +9,11 @@ module dstress.run.c.case_02; -char[] getString(){ +string getString(){ return "i"; } -int main(char[][] args){ +int main(string[] args){ switch(args[0]) { case getString(): assert(0); diff -r ec5e144583ea -r 36bedfa079e6 run/c/case_03.d --- a/run/c/case_03.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/c/case_03.d Sun Aug 19 19:15:01 2007 +0000 @@ -9,11 +9,11 @@ module dstress.run.c.case_03; -char[] getString(){ +string getString(){ return "i"; } -int main(char[][] args){ +int main(string[] args){ switch(args.length > 1 ? "" : "i") { case "": assert(0); diff -r ec5e144583ea -r 36bedfa079e6 run/c/char_07_A.d --- a/run/c/char_07_A.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/c/char_07_A.d Sun Aug 19 19:15:01 2007 +0000 @@ -9,13 +9,13 @@ module dstress.run.c.char_07_A; int main(){ - char[] string = "\uDBC4\uDD11"; + string x = "\uDBC4\uDD11"; - if(string.length != 4){ + if(x.length != 4){ assert(0); } - if(string[0] == 0xF0 && string[1] == 0x81 && string[2] == 0x84 && string[3] == 0x91){ + if(x[0] == 0xF0 && x[1] == 0x81 && x[2] == 0x84 && x[3] == 0x91){ return 0; } } diff -r ec5e144583ea -r 36bedfa079e6 run/c/char_07_B.d --- a/run/c/char_07_B.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/c/char_07_B.d Sun Aug 19 19:15:01 2007 +0000 @@ -9,13 +9,13 @@ module dstress.run.c.char_07_B; int main(){ - char[] string = "\uDBC4\uDD11"c; + string x = "\uDBC4\uDD11"c; - if(string.length != 4){ + if(x.length != 4){ assert(0); } - if(string[0] == 0xF0 && string[1] == 0x81 && string[2] == 0x84 && string[3] == 0x91){ + if(x[0] == 0xF0 && x[1] == 0x81 && x[2] == 0x84 && x[3] == 0x91){ return 0; } } diff -r ec5e144583ea -r 36bedfa079e6 run/c/char_07_C.d --- a/run/c/char_07_C.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/c/char_07_C.d Sun Aug 19 19:15:01 2007 +0000 @@ -9,13 +9,13 @@ module dstress.run.c.char_07_C; int main(){ - char[] string = "\uDBC4\uDD11"d; + string x = "\uDBC4\uDD11"d; - if(string.length != 4){ + if(x.length != 4){ assert(0); } - if(string[0] == 0xF0 && string[1] == 0x81 && string[2] == 0x84 && string[3] == 0x91){ + if(x[0] == 0xF0 && x[1] == 0x81 && x[2] == 0x84 && x[3] == 0x91){ return 0; } } diff -r ec5e144583ea -r 36bedfa079e6 run/c/char_07_D.d --- a/run/c/char_07_D.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/c/char_07_D.d Sun Aug 19 19:15:01 2007 +0000 @@ -9,13 +9,13 @@ module dstress.run.c.char_07_D; int main(){ - char[] string = "\uDBC4\uDD11"w; + string x = "\uDBC4\uDD11"w; - if(string.length != 4){ + if(x.length != 4){ assert(0); } - if(string[0] == 0xF0 && string[1] == 0x81 && string[2] == 0x84 && string[3] == 0x91){ + if(x[0] == 0xF0 && x[1] == 0x81 && x[2] == 0x84 && x[3] == 0x91){ return 0; } } diff -r ec5e144583ea -r 36bedfa079e6 run/c/char_07_E.d --- a/run/c/char_07_E.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/c/char_07_E.d Sun Aug 19 19:15:01 2007 +0000 @@ -9,11 +9,11 @@ module dstress.run.c.char_07_E; int main(){ - const char[] string = "\uDBC4\uDD11"; + const x = "\uDBC4\uDD11"; - static assert(string.length == 4); + static assert(x.length == 4); - static if(string[0] == 0xF0 && string[1] == 0x81 && string[2] == 0x84 && string[3] == 0x91){ + static if(x[0] == 0xF0 && x[1] == 0x81 && x[2] == 0x84 && x[3] == 0x91){ return 0; } } diff -r ec5e144583ea -r 36bedfa079e6 run/c/char_07_F.d --- a/run/c/char_07_F.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/c/char_07_F.d Sun Aug 19 19:15:01 2007 +0000 @@ -9,11 +9,11 @@ module dstress.run.c.char_07_F; int main(){ - const char[] string = "\uDBC4\uDD11"c; + const x = "\uDBC4\uDD11"c; - static assert(string.length == 4); + static assert(x.length == 4); - static if(string[0] == 0xF0 && string[1] == 0x81 && string[2] == 0x84 && string[3] == 0x91){ + static if(x[0] == 0xF0 && x[1] == 0x81 && x[2] == 0x84 && x[3] == 0x91){ return 0; } } diff -r ec5e144583ea -r 36bedfa079e6 run/c/char_07_G.d --- a/run/c/char_07_G.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/c/char_07_G.d Sun Aug 19 19:15:01 2007 +0000 @@ -9,11 +9,11 @@ module dstress.run.c.char_07_G; int main(){ - const char[] string = "\uDBC4\uDD11"d; + const char[] x = "\uDBC4\uDD11"d; - static assert(string.length == 4); + static assert(x.length == 4); - static if(string[0] == 0xF0 && string[1] == 0x81 && string[2] == 0x84 && string[3] == 0x91){ + static if(x[0] == 0xF0 && x[1] == 0x81 && x[2] == 0x84 && x[3] == 0x91){ return 0; } } diff -r ec5e144583ea -r 36bedfa079e6 run/c/char_07_H.d --- a/run/c/char_07_H.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/c/char_07_H.d Sun Aug 19 19:15:01 2007 +0000 @@ -9,11 +9,11 @@ module dstress.run.c.char_07_H; int main(){ - const char[] string = "\uDBC4\uDD11"w; + const char[] x = "\uDBC4\uDD11"w; - static assert(string.length == 4); + static assert(x.length == 4); - static if(string[0] == 0xF0 && string[1] == 0x81 && string[2] == 0x84 && string[3] == 0x91){ + static if(x[0] == 0xF0 && x[1] == 0x81 && x[2] == 0x84 && x[3] == 0x91){ return 0; } } diff -r ec5e144583ea -r 36bedfa079e6 run/comment_11.d --- a/run/comment_11.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/comment_11.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,11 +5,11 @@ module dstress.run.comment_11; int main(){ - char[] string="/**/"; - assert(string.length==4); - assert(string[0]=='/'); - assert(string[1]=='*'); - assert(string[2]=='*'); - assert(string[3]=='/'); + string x="/**/"; + assert(x.length==4); + assert(x[0]=='/'); + assert(x[1]=='*'); + assert(x[2]=='*'); + assert(x[3]=='/'); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/comment_12.d --- a/run/comment_12.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/comment_12.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,11 +5,11 @@ module dstress.run.comment_12; int main(){ - char[] string="/++/"; - assert(string.length==4); - assert(string[0]=='/'); - assert(string[1]=='+'); - assert(string[2]=='+'); - assert(string[3]=='/'); + string x="/++/"; + assert(x.length==4); + assert(x[0]=='/'); + assert(x[1]=='+'); + assert(x[2]=='+'); + assert(x[3]=='/'); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/comment_13.d --- a/run/comment_13.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/comment_13.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,13 +5,13 @@ module dstress.run.comment_13; int main(){ - char[] string=" + string x=" // "; - assert(string.length==4); - assert(string[0]=='\n'); - assert(string[1]=='/'); - assert(string[2]=='/'); - assert(string[3]=='\n'); + assert(x.length==4); + assert(x[0]=='\n'); + assert(x[1]=='/'); + assert(x[2]=='/'); + assert(x[3]=='\n'); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/d/dchar_10_A.d --- a/run/d/dchar_10_A.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/d/dchar_10_A.d Sun Aug 19 19:15:01 2007 +0000 @@ -9,11 +9,13 @@ module dstress.run.d.dchar_10_A; int main(){ - dchar[] string = "\uDBC4\uDD11"; + dchar[] x = "\uDBC4\uDD11"; - assert(string.length == 1); + if(1 != x.length){ + assert(0); + } - if(string[0] == 0x101111){ + if(x[0] == 0x101111){ return 0; } } diff -r ec5e144583ea -r 36bedfa079e6 run/d/dchar_10_B.d --- a/run/d/dchar_10_B.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/d/dchar_10_B.d Sun Aug 19 19:15:01 2007 +0000 @@ -9,11 +9,13 @@ module dstress.run.d.dchar_10_B; int main(){ - dchar[] string = "\uDBC4\uDD11"c; + dchar[] x = "\uDBC4\uDD11"c; - assert(string.length == 1); + if(1 != x.length){ + assert(0); + } - if(string[0] == 0x101111){ + if(x[0] == 0x101111){ return 0; } } diff -r ec5e144583ea -r 36bedfa079e6 run/d/dchar_10_C.d --- a/run/d/dchar_10_C.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/d/dchar_10_C.d Sun Aug 19 19:15:01 2007 +0000 @@ -9,11 +9,13 @@ module dstress.run.d.dchar_10_C; int main(){ - dchar[] string = "\uDBC4\uDD11"d; + const dchar[] x = "\uDBC4\uDD11"d; - assert(string.length == 1); + if(1 != x.length){ + assert(0); + } - if(string[0] == 0x101111){ + if(x[0] == 0x101111){ return 0; } } diff -r ec5e144583ea -r 36bedfa079e6 run/d/dchar_10_D.d --- a/run/d/dchar_10_D.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/d/dchar_10_D.d Sun Aug 19 19:15:01 2007 +0000 @@ -9,11 +9,11 @@ module dstress.run.d.dchar_10_D; int main(){ - dchar[] string = "\uDBC4\uDD11"w; + const dchar[] x = "\uDBC4\uDD11"w; - assert(string.length == 1); + assert(x.length == 1); - if(string[0] == 0x101111){ + if(x[0] == 0x101111){ return 0; } } diff -r ec5e144583ea -r 36bedfa079e6 run/d/dchar_10_E.d --- a/run/d/dchar_10_E.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/d/dchar_10_E.d Sun Aug 19 19:15:01 2007 +0000 @@ -9,11 +9,11 @@ module dstress.run.d.dchar_10_E; int main(){ - const dchar[] string = "\uDBC4\uDD11"; + const dchar[] x = "\uDBC4\uDD11"; - static assert(string.length == 1); + static assert(x.length == 1); - static if(string[0] == 0x101111){ + static if(x[0] == 0x101111){ return 0; } } diff -r ec5e144583ea -r 36bedfa079e6 run/d/dchar_10_F.d --- a/run/d/dchar_10_F.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/d/dchar_10_F.d Sun Aug 19 19:15:01 2007 +0000 @@ -9,11 +9,11 @@ module dstress.run.d.dchar_10_F; int main(){ - const dchar[] string = "\uDBC4\uDD11"c; + const dchar[] x = "\uDBC4\uDD11"c; - static assert(string.length == 1); + static assert(x.length == 1); - static if(string[0] == 0x101111){ + static if(x[0] == 0x101111){ return 0; } } diff -r ec5e144583ea -r 36bedfa079e6 run/d/dchar_10_G.d --- a/run/d/dchar_10_G.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/d/dchar_10_G.d Sun Aug 19 19:15:01 2007 +0000 @@ -9,11 +9,11 @@ module dstress.run.d.dchar_10_G; int main(){ - const dchar[] string = "\uDBC4\uDD11"d; + const dchar[] x = "\uDBC4\uDD11"d; - static assert(string.length == 1); + static assert(x.length == 1); - static if(string[0] == 0x101111){ + static if(x[0] == 0x101111){ return 0; } } diff -r ec5e144583ea -r 36bedfa079e6 run/d/dchar_10_H.d --- a/run/d/dchar_10_H.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/d/dchar_10_H.d Sun Aug 19 19:15:01 2007 +0000 @@ -9,11 +9,11 @@ module dstress.run.d.dchar_10_H; int main(){ - const dchar[] string = "\uDBC4\uDD11"w; + const dchar[] x = "\uDBC4\uDD11"w; - static assert(string.length == 1); + static assert(x.length == 1); - static if(string[0] == 0x101111){ + static if(x[0] == 0x101111){ return 0; } } diff -r ec5e144583ea -r 36bedfa079e6 run/default_argument_08.d --- a/run/default_argument_08.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/default_argument_08.d Sun Aug 19 19:15:01 2007 +0000 @@ -8,17 +8,25 @@ module dstress.run.default_argument_08; -int foo(char [] string = BAR){ - return string.length; +int foo(string x = BAR){ + return x.length; } -char [] BAR = "Bar"; +string BAR = "Bar"; int main(){ - assert(foo()==3); - assert(foo("a")==1); - assert(foo==3); + if(3 != foo()){ + assert(0); + } + if(1 != foo("a")){ + assert(0); + } + if(3 != foo){ + assert(0); + } BAR="ab"; - assert(foo()==2); + if(2 != foo()){ + assert(0); + } return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/default_argument_09.d --- a/run/default_argument_09.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/default_argument_09.d Sun Aug 19 19:15:01 2007 +0000 @@ -10,8 +10,8 @@ char [] BAR = "Bar"; -int foo(char [] string = BAR){ - return string.length; +int foo(char [] x = BAR){ + return x.length; } int main(){ diff -r ec5e144583ea -r 36bedfa079e6 run/double_quoted_string_01.d --- a/run/double_quoted_string_01.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/double_quoted_string_01.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,10 +5,10 @@ module dstress.run.double_quoted_string_01; int main(){ - char[] string="abc"; - assert(string.length==3); - assert(string[0]=='a'); - assert(string[1]=='b'); - assert(string[2]=='c'); + string x="abc"; + assert(x.length==3); + assert(x[0]=='a'); + assert(x[1]=='b'); + assert(x[2]=='c'); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/double_quoted_string_02.d --- a/run/double_quoted_string_02.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/double_quoted_string_02.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,10 +5,10 @@ module dstress.run.double_quoted_string_02; int main(){ - char[] string=" + string x=" "; - assert(string.length==2); - assert(string[0]=='\n'); - assert(string[1]=='\t'); + assert(x.length==2); + assert(x[0]=='\n'); + assert(x[1]=='\t'); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/double_quoted_string_03.d --- a/run/double_quoted_string_03.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/double_quoted_string_03.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,8 +5,8 @@ module dstress.run.double_quoted_string_03; int main(){ - char[] string="\n"; - assert(string.length==1); - assert(string[0]==0x0A); + string x="\n"; + assert(x.length==1); + assert(x[0]==0x0A); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/double_quoted_string_04.d --- a/run/double_quoted_string_04.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/double_quoted_string_04.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,8 +5,8 @@ module dstress.run.double_quoted_string_04; int main(){ - char[] string="\t"; - assert(string.length==1); - assert(string[0]==0x09); + string x="\t"; + assert(x.length==1); + assert(x[0]==0x09); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/double_quoted_string_05.d --- a/run/double_quoted_string_05.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/double_quoted_string_05.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,8 +5,8 @@ module dstress.run.double_quoted_string_05; int main(){ - char[] string="\""; - assert(string.length==1); - assert(string[0]==0x22); + string x="\""; + assert(x.length==1); + assert(x[0]==0x22); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/double_quoted_string_06.d --- a/run/double_quoted_string_06.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/double_quoted_string_06.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,8 +5,8 @@ module dstress.run.double_quoted_string_06; int main(){ - char[] string="\'"; - assert(string.length==1); - assert(string[0]=='\''); + string x="\'"; + assert(x.length==1); + assert(x[0]=='\''); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/double_quoted_string_07.d --- a/run/double_quoted_string_07.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/double_quoted_string_07.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,8 +5,8 @@ module dstress.run.double_quoted_string_07; int main(){ - char[] string="\?"; - assert(string.length==1); - assert(string[0]=='?'); + string x="\?"; + assert(x.length==1); + assert(x[0]=='?'); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/double_quoted_string_08.d --- a/run/double_quoted_string_08.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/double_quoted_string_08.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,8 +5,8 @@ module dstress.run.double_quoted_string_08; int main(){ - char[] string="\a"; - assert(string.length==1); - assert(string[0]==0x07); + string x="\a"; + assert(x.length==1); + assert(x[0]==0x07); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/double_quoted_string_09.d --- a/run/double_quoted_string_09.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/double_quoted_string_09.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,8 +5,8 @@ module dstress.run.double_quoted_string_09; int main(){ - char[] string="\b"; - assert(string.length==1); - assert(string[0]==0x08); + string x="\b"; + assert(x.length==1); + assert(x[0]==0x08); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/double_quoted_string_10.d --- a/run/double_quoted_string_10.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/double_quoted_string_10.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,8 +5,8 @@ module dstress.run.double_quoted_string_10; int main(){ - char[] string="\f"; - assert(string.length==1); - assert(string[0]==0x0C); + string x="\f"; + assert(x.length==1); + assert(x[0]==0x0C); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/double_quoted_string_11.d --- a/run/double_quoted_string_11.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/double_quoted_string_11.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,8 +5,8 @@ module dstress.run.double_quoted_string_11; int main(){ - char[] string="\v"; - assert(string.length==1); - assert(string[0]==0x0B); + string x="\v"; + assert(x.length==1); + assert(x[0]==0x0B); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/double_quoted_string_17.d --- a/run/double_quoted_string_17.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/double_quoted_string_17.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,8 +5,8 @@ module dstress.run.double_quoted_string_17; int main(){ - char[] a= "a" "b" "c"; - char[] b= \x61 "bc"; + string a= "a" "b" "c"; + string b= \x61 "bc"; assert(a==b); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/double_quoted_string_18.d --- a/run/double_quoted_string_18.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/double_quoted_string_18.d Sun Aug 19 19:15:01 2007 +0000 @@ -2,11 +2,11 @@ // $Date$ // $Author$ -module dstress.run.double_quoted_string_17; +module dstress.run.double_quoted_string_18; int main(){ - char[] a= r"a" x"62" \x63; - char[] b= \u0061 "b" \U00000063; + string a= r"a" x"62" \x63; + string b= \u0061 "b" \U00000063; assert(a==b); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/escape_hex_01.d --- a/run/escape_hex_01.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/escape_hex_01.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,9 +5,9 @@ module dstress.run.escape_hex_01; int main(){ - char[] string="\x412"; - assert(string.length==2); - assert(string[0]=='A'); - assert(string[1]=='2'); + string x="\x412"; + assert(x.length==2); + assert(x[0]=='A'); + assert(x[1]=='2'); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/escape_hex_string_01.d --- a/run/escape_hex_string_01.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/escape_hex_string_01.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,9 +5,9 @@ module dstress.run.escape_hex_string_01; int main(){ - char[] string=x"12af"; - assert(string.length==2); - assert(string[0]==0x12); - assert(string[1]==0xAF); + string x=x"12af"; + assert(x.length==2); + assert(x[0]==0x12); + assert(x[1]==0xAF); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/escape_hex_string_02.d --- a/run/escape_hex_string_02.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/escape_hex_string_02.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,11 +5,11 @@ module dstress.run.escape_hex__string_02; int main(){ - char[] string=x" 1 2 + string x=x" 1 2 a f"; - assert(string.length==2); - assert(string[0]==0x12); - assert(string[1]==0xAF); + assert(x.length==2); + assert(x[0]==0x12); + assert(x[1]==0xAF); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/escape_octal_01.d --- a/run/escape_octal_01.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/escape_octal_01.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,8 +5,8 @@ module dstress.run.escape_octal_01; int main(){ - char[] string="\012"; - assert(string.length==1); - assert(string[0]==0x0A); + string x="\012"; + assert(x.length==1); + assert(x[0]==0x0A); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/escape_unicode16_01.d --- a/run/escape_unicode16_01.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/escape_unicode16_01.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,9 +5,9 @@ module dstress.run.escape_unicode16_01; int main(){ - wchar[] string="\u02AF1"; - assert(string.length==2); - assert(string[0]==0x2AF); - assert(string[1]=='1'); + wstring x="\u02AF1"; + assert(x.length==2); + assert(x[0]==0x2AF); + assert(x[1]=='1'); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/escape_unicode16_02.d --- a/run/escape_unicode16_02.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/escape_unicode16_02.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,10 +5,10 @@ module dstress.run.escape_unicode16_02; int main(){ - char[] string="\u02AF1"; - assert(string.length==3); - assert(string[0]==0xCA); - assert(string[1]==0xAF); - assert(string[2]=='1'); + string x="\u02AF1"; + assert(x.length==3); + assert(x[0]==0xCA); + assert(x[1]==0xAF); + assert(x[2]=='1'); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/escape_unicode32_01.d --- a/run/escape_unicode32_01.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/escape_unicode32_01.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,9 +5,9 @@ module dstress.run.escape_unicode32_01; int main(){ - wchar[] string="\U000002AF1"; - assert(string.length==2); - assert(string[0]==0x2AF); - assert(string[1]=='1'); + wstring x="\U000002AF1"; + assert(x.length==2); + assert(x[0]==0x2AF); + assert(x[1]=='1'); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/escape_unicode32_02.d --- a/run/escape_unicode32_02.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/escape_unicode32_02.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,10 +5,10 @@ module dstress.run.escape_unicode32_02; int main(){ - char[] string="\U000002AF1"; - assert(string.length==3); - assert(string[0]==0xCA); - assert(string[1]==0xAF); - assert(string[2]=='1'); + string x="\U000002AF1"; + assert(x.length==3); + assert(x[0]==0xCA); + assert(x[1]==0xAF); + assert(x[2]=='1'); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/foreach_16.d --- a/run/foreach_16.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/foreach_16.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,11 +5,11 @@ module dstress.run.foreach_16; int main(){ - char[] string = x"F0 9D 83 93"; // utf-8 for U+1D0D3 + string x = x"F0 9D 83 93"; // utf-8 for U+1D0D3 int count=0; dchar tmp; - foreach(dchar value ; string){ + foreach(dchar value ; x){ tmp=value; count++; } diff -r ec5e144583ea -r 36bedfa079e6 run/html_line_ending_dos.html --- a/run/html_line_ending_dos.html Sun Aug 19 19:11:54 2007 +0000 +++ b/run/html_line_ending_dos.html Sun Aug 19 19:15:01 2007 +0000 @@ -20,16 +20,16 @@ * "blah blah (linenumber) blah blah" */ void checkLineNumber(Object o){ - char[] string=o.toString(); + string x=o.toString(); int start; - for(start=0; start<string.length; start++){if(string[start]=='('){break;}} + for(start=0; start<x.length; start++){if(x[start]=='('){break;}} int end; - for(end=string.length-1; end>start; end--){if(string[end]==')'){break;}} + for(end=x.length-1; end>start; end--){if(x[end]==')'){break;}} assert(end-start==2); - assert(string[start+1]=='8'); + assert(x[start+1]=='8'); } diff -r ec5e144583ea -r 36bedfa079e6 run/html_line_ending_linux.html --- a/run/html_line_ending_linux.html Sun Aug 19 19:11:54 2007 +0000 +++ b/run/html_line_ending_linux.html Sun Aug 19 19:15:01 2007 +0000 @@ -21,17 +21,17 @@ * "blah blah (linenumber) blah blah" */ void checkLineNumber(Object o){ - char[] string=o.toString(); + string x=o.toString(); int start; - for(start=0; start<string.length; start++){if(string[start]=='('){break;} + for(start=0; start<x.length; start++){if(x[start]=='('){break;} } int end; - for(end=string.length-1; end>start; end--){if(string[end]==')'){break;}} + for(end=x.length-1; end>start; end--){if(x[end]==')'){break;}} assert(end-start==2); - assert(string[start+1]=='8'); + assert(x[start+1]=='8'); } diff -r ec5e144583ea -r 36bedfa079e6 run/html_line_ending_mac.html --- a/run/html_line_ending_mac.html Sun Aug 19 19:11:54 2007 +0000 +++ b/run/html_line_ending_mac.html Sun Aug 19 19:15:01 2007 +0000 @@ -1,1 +1,1 @@ - dstress: html_line_ending_mac

// __DSTRESS_TORTURE_BLOCK__ -release
int main(){
	try{
		assert(0);
	}catch(Exception e){
		checkLineNumber(e);
		return 0;
	}
	assert(-1);
	return 1;
}

/*
 * @WARNING@ this code depends on the phobos implementation.
 * char[]s returned by wrong assertions have to look like:
 *	 "blah blah (linenumber) blah blah"
 */
void checkLineNumber(Object o){
	char[] string=o.toString();

	int start;
	for(start=0; start<string.length; start++){if(string[start]=='('){break;}}

	int end;
	for(end=string.length-1; end>start; end--){if(string[end]==')'){break;}}

	assert(end-start==2);
	assert(string[start+1]=='8');
}
	
\ No newline at end of file + dstress: html_line_ending_mac

// __DSTRESS_TORTURE_BLOCK__ -release
int main(){
	try{
		assert(0);
	}catch(Exception e){
		checkLineNumber(e);
		return 0;
	}
	assert(-1);
	return 1;
}

/*
 * @WARNING@ this code depends on the phobos implementation.
 * char[]s returned by wrong assertions have to look like:
 *	 "blah blah (linenumber) blah blah"
 */
void checkLineNumber(Object o){
	string x=o.toString();

	int start;
	for(start=0; start<x.length; start++){if(x[start]=='('){break;}}

	int end;
	for(end=x.length-1; end>start; end--){if(x[end]==')'){break;}}

	assert(end-start==2);
	assert(x[start+1]=='7');
}
	
\ No newline at end of file diff -r ec5e144583ea -r 36bedfa079e6 run/html_line_ending_unicode.html --- a/run/html_line_ending_unicode.html Sun Aug 19 19:11:54 2007 +0000 +++ b/run/html_line_ending_unicode.html Sun Aug 19 19:15:01 2007 +0000 @@ -1,1 +1,1 @@ -
 dstress: html_line_ending_unicode

int main(){
		try{
			assert(0);
		}catch(Object o){
			checkLineNumber(o);
			return 0;
	}
		assert(-1);
		return 1;
}

/* 
 * WARNING: this code depends on the phobos implementation.
 * char[]s returned by wrong assertions have to look like:
 *	 "blah blah (linenumber) blah blah"
 */
void checkLineNumber(Object o){
		char[] string=o.toString();
	
		int start;
		for(start=0; start<string.length; start++){if(string[start]=='('){break;}}

		int end;
	for(end=string.length-1; end>start; end--){	if(string[end]==')'){	break;}	}

	assert(end-start==2);
		assert(string[start+1]=='6');
}
	


 +
 dstress: html_line_ending_unicode

int main(){
		try{
			assert(0);
		}catch(Object o){
			checkLineNumber(o);
			return 0;
	}
		assert(-1);
		return 1;
}

/* 
 * WARNING: this code depends on the phobos implementation.
 * char[]s returned by wrong assertions have to look like:
 *	 "blah blah (linenumber) blah blah"
 */
void checkLineNumber(Object o){
		string x=o.toString(); printf("%.*s\n", x);
	
		int start;
		for(start=0; start<x.length; start++){if(x[start]=='('){break;}}

		int end;
	for(end=x.length-1; end>start; end--){	if(x[end]==')'){	break;}	}

	assert(end-start==2);
		assert(x[start+1]=='6');
}
	


 diff -r ec5e144583ea -r 36bedfa079e6 run/l/large_id_02_A.d --- a/run/l/large_id_02_A.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/l/large_id_02_A.d Sun Aug 19 19:15:01 2007 +0000 @@ -11,7 +11,7 @@ module dstress.run.l.large_id_02_A; -void bug(char[] msg)(){ +void bug(string msg)(){ if(442 != msg.length){ assert(0); } diff -r ec5e144583ea -r 36bedfa079e6 run/l/large_id_02_B.d --- a/run/l/large_id_02_B.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/l/large_id_02_B.d Sun Aug 19 19:15:01 2007 +0000 @@ -11,7 +11,7 @@ module dstress.run.l.large_id_02_B; -void bug(char[] msg)(){ +void bug(string msg)(){ if(441 != msg.length){ assert(0); } diff -r ec5e144583ea -r 36bedfa079e6 run/line_ending_dos.d --- a/run/line_ending_dos.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/line_ending_dos.d Sun Aug 19 19:15:01 2007 +0000 @@ -21,22 +21,22 @@ * "blah blah (linenumber) blah blah" */ void checkLineNumber(Object o){ - char[] string=o.toString(); + string msg=o.toString(); int start; - for(start=0; startstart; end--){ - if(string[end]==')'){ + for(end=msg.length-1; end>start; end--){ + if(msg[end]==')'){ break; } } assert(end-start==2); - assert(string[start+1]=='9'); + assert(msg[start+1]=='9'); } diff -r ec5e144583ea -r 36bedfa079e6 run/line_ending_linux.d --- a/run/line_ending_linux.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/line_ending_linux.d Sun Aug 19 19:15:01 2007 +0000 @@ -21,22 +21,22 @@ * "blah blah (linenumber) blah blah" */ void checkLineNumber(Object o){ - char[] string=o.toString(); + string x=o.toString(); int start; - for(start=0; startstart; end--){ - if(string[end]==')'){ + for(end=x.length-1; end>start; end--){ + if(x[end]==')'){ break; } } assert(end-start==2); - assert(string[start+1]=='9'); + assert(x[start+1]=='9'); } diff -r ec5e144583ea -r 36bedfa079e6 run/line_ending_mac.d --- a/run/line_ending_mac.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/line_ending_mac.d Sun Aug 19 19:15:01 2007 +0000 @@ -1,1 +1,1 @@ -// $HeadURL$ // $Date$ // $Author$ // __DSTRESS_TORTURE_BLOCK__ -release module dstress.run.line_ending_mac; int main(){ try{ assert(0); }catch(Exception e){ checkLineNumber(e); return 0; } assert(0); } /* * @WARNING@ this code depends on the phobos implementation. * char[]s returned by wrong assertions have to look like: * "blah blah (linenumber) blah blah" */ void checkLineNumber(Object o){ char[] string=o.toString(); int start; for(start=0; startstart; end--){ if(string[end]==')'){ break; } } assert(end-start==2); assert(string[start+1]=='9'); } \ No newline at end of file +// $HeadURL$ // $Date$ // $Author$ // __DSTRESS_TORTURE_BLOCK__ -release module dstress.run.line_ending_mac; int main(){ try{ assert(0); }catch(Exception e){ checkLineNumber(e); return 0; } assert(0); } /* * @WARNING@ this code depends on the phobos implementation. * char[]s returned by wrong assertions have to look like: * "blah blah (linenumber) blah blah" */ void checkLineNumber(Object o){ string msg=o.toString(); int start; for(start=0; startstart; end--){ if(msg[end]==')'){ break; } } assert(end-start==2); assert(msg[start+1]=='9'); } \ No newline at end of file diff -r ec5e144583ea -r 36bedfa079e6 run/line_ending_unicode.d --- a/run/line_ending_unicode.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/line_ending_unicode.d Sun Aug 19 19:15:01 2007 +0000 @@ -1,1 +1,1 @@ -// encoding: utf-8
// line ending: unicode
int main(){
 try{
 assert(0);
 }catch(Object e){
 checkLineNumber(e);
 return 0;
 } return 1;
}

/* 
 * WARNING: this code depends on the phobos implementation.
 * char[]s returned by wrong assertions have to look like:
 * "blah blah (linenumber) blah blah"
 */
void checkLineNumber(Object o){
 char[] string=o.toString();
 
 int start;
 for(start=0; startstart; end--){if(string[end]==')'){break;} }

 assert(end-start==2);
 assert(string[start+1]=='5');
}
 +// encoding: utf-8
// line ending: unicode
int main(){
 try{
 assert(0);
 }catch(Object e){
 checkLineNumber(e);
 return 0;
 } return 1;
}

/* 
 * WARNING: this code depends on the phobos implementation.
 * char[]s returned by wrong assertions have to look like:
 * "blah blah (linenumber) blah blah"
 */
void checkLineNumber(Object o){
 string x=o.toString();
 
 int start;
 for(start=0; startstart; end--){if(x[end]==')'){break;} }

 assert(end-start==2);
 assert(x[start+1]=='5');
}
 diff -r ec5e144583ea -r 36bedfa079e6 run/line_token_02.d --- a/run/line_token_02.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/line_token_02.d Sun Aug 19 19:15:01 2007 +0000 @@ -24,22 +24,22 @@ * "blah blah (linenumber) blah blah" */ void checkLineNumber(Object o){ - char[] string=o.toString(); + string x=o.toString(); int start; - for(start=0; startstart; end--){ - if(string[end]==')'){ + for(end=x.length-1; end>start; end--){ + if(x[end]==')'){ break; } } assert(end-start==2); - assert(string[start+1]=='0'); + assert(x[start+1]=='0'); } diff -r ec5e144583ea -r 36bedfa079e6 run/line_token_03.d --- a/run/line_token_03.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/line_token_03.d Sun Aug 19 19:15:01 2007 +0000 @@ -24,14 +24,14 @@ * "blah blah "filename" blah blah" */ void checkFileSpec(Object o){ - char[] string=o.toString(); + string x=o.toString(); int start; - for(start=0; startstart; end--){ - if(string[end]==')'){ + for(end=x.length-1; end>start; end--){ + if(x[end]==')'){ break; } } assert(end-start==3); - assert(string[start+1]=='1'); - assert(string[start+2]=='2'); + assert(x[start+1]=='1'); + assert(x[start+2]=='2'); } diff -r ec5e144583ea -r 36bedfa079e6 run/line_token_12.d --- a/run/line_token_12.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/line_token_12.d Sun Aug 19 19:15:01 2007 +0000 @@ -25,23 +25,23 @@ * "blah blah (linenumber) blah blah" */ void checkLineNumber(Object o){ - char[] string=o.toString(); + string x=o.toString(); int start; - for(start=0; startstart; end--){ - if(string[end]==')'){ + for(end=x.length-1; end>start; end--){ + if(x[end]==')'){ break; } } assert(end-start==3); - assert(string[start+1]=='1'); - assert(string[start+2]=='2'); + assert(x[start+1]=='1'); + assert(x[start+2]=='2'); } diff -r ec5e144583ea -r 36bedfa079e6 run/o/odd_bug_11_A.d --- a/run/o/odd_bug_11_A.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/o/odd_bug_11_A.d Sun Aug 19 19:15:01 2007 +0000 @@ -12,7 +12,7 @@ class A { static const MY_CONST_STRING = "hello"; - this(char[] cmp) { + this(string cmp) { if(cmp != MY_CONST_STRING){ assert(0); } diff -r ec5e144583ea -r 36bedfa079e6 run/o/odd_bug_11_B.d --- a/run/o/odd_bug_11_B.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/o/odd_bug_11_B.d Sun Aug 19 19:15:01 2007 +0000 @@ -12,7 +12,7 @@ class A { const MY_CONST_STRING = "hello"; - this(char[] cmp) { + this(string cmp) { if(cmp != MY_CONST_STRING){ assert(0); } diff -r ec5e144583ea -r 36bedfa079e6 run/o/odd_bug_11_C.d --- a/run/o/odd_bug_11_C.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/o/odd_bug_11_C.d Sun Aug 19 19:15:01 2007 +0000 @@ -12,7 +12,7 @@ class A { static MY_CONST_STRING = "hello"; - this(char[] cmp) { + this(string cmp){ if(cmp != MY_CONST_STRING){ assert(0); } diff -r ec5e144583ea -r 36bedfa079e6 run/o/odd_bug_11_D.d --- a/run/o/odd_bug_11_D.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/o/odd_bug_11_D.d Sun Aug 19 19:15:01 2007 +0000 @@ -12,7 +12,7 @@ class A { static const char[] MY_CONST_STRING = "hello"; - this(char[] cmp) { + this(string cmp) { if(cmp != MY_CONST_STRING){ assert(0); } diff -r ec5e144583ea -r 36bedfa079e6 run/o/odd_bug_11_E.d --- a/run/o/odd_bug_11_E.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/o/odd_bug_11_E.d Sun Aug 19 19:15:01 2007 +0000 @@ -12,7 +12,7 @@ class A { static const MY_CONST_STRING = "hello"; - this(char[] cmp) { + this(string cmp) { if(cmp != MY_CONST_STRING){ assert(0); } diff -r ec5e144583ea -r 36bedfa079e6 run/o/opCat_16_C.d --- a/run/o/opCat_16_C.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/o/opCat_16_C.d Sun Aug 19 19:15:01 2007 +0000 @@ -9,12 +9,18 @@ module dstress.run.o.opCat_16_C; int main(){ - char[][] strings; + string[] strings; strings.length = 1; strings[0] = "Foo"; - char[] test = "Bar"; - assert((strings ~ test).length==2); - assert((strings ~ test)[0] == "Foo"); - assert((strings ~ test)[1] == "Bar"); + string test = "Bar"; + if(2 != (strings ~ test).length){ + assert(0); + } + if("Foo" != (strings ~ test)[0]){ + assert(0); + } + if("Bar" != (strings ~ test)[1]){ + assert(0); + } return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/o/opCat_16_D.d --- a/run/o/opCat_16_D.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/o/opCat_16_D.d Sun Aug 19 19:15:01 2007 +0000 @@ -9,10 +9,10 @@ module dstress.run.o.opCat_16_D; int main(){ - wchar[][] strings; + wstring[] strings; strings.length = 1; strings[0] = "Foo"; - wchar[] test = "Bar"; + wstring test = "Bar"; assert((strings ~ test).length==2); assert((strings ~ test)[0] == "Foo"); assert((strings ~ test)[1] == "Bar"); diff -r ec5e144583ea -r 36bedfa079e6 run/o/opCat_16_E.d --- a/run/o/opCat_16_E.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/o/opCat_16_E.d Sun Aug 19 19:15:01 2007 +0000 @@ -9,10 +9,10 @@ module dstress.run.o.opCat_16_E; int main(){ - dchar[][] strings; + dstring[] strings; strings.length = 1; strings[0] = "Foo"; - dchar[] test = "Bar"; + dstring test = "Bar"; assert((strings ~ test).length==2); assert((strings ~ test)[0] == "Foo"); assert((strings ~ test)[1] == "Bar"); diff -r ec5e144583ea -r 36bedfa079e6 run/o/opCat_16_G.d --- a/run/o/opCat_16_G.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/o/opCat_16_G.d Sun Aug 19 19:15:01 2007 +0000 @@ -9,11 +9,11 @@ module dstress.run.o.opCat_16_G; int main(){ - dchar[][] strings; + dstring[] strings; strings.length = 1; strings[0] = "Foo"; - assert((strings ~ "Bar"d).length==2); - assert((strings ~ "Bar"d)[0] == "Foo"d); - assert((strings ~ "Bar"d)[1] == "Bar"d); + assert((strings ~ "Bar"d.dup).length==2); + assert((strings ~ "Bar"d.dup)[0] == "Foo"); + assert((strings ~ "Bar"d.dup)[1] == "Bar"); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/o/opCat_16_H.d --- a/run/o/opCat_16_H.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/o/opCat_16_H.d Sun Aug 19 19:15:01 2007 +0000 @@ -9,11 +9,11 @@ module dstress.run.o.opCat_16_H; int main(){ - wchar[][] strings; + wstring[] strings; strings.length = 1; strings[0] = "Foo"; - assert((strings ~ "Bar"w).length==2); - assert((strings ~ "Bar"w)[0] == "Foo"w); - assert((strings ~ "Bar"w)[1] == "Bar"w); + assert((strings ~ "Bar"w.dup).length==2); + assert((strings ~ "Bar"w.dup)[0] == "Foo"w); + assert((strings ~ "Bar"w.dup)[1] == "Bar"w); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/opCatAssign_01.d --- a/run/opCatAssign_01.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/opCatAssign_01.d Sun Aug 19 19:15:01 2007 +0000 @@ -5,8 +5,8 @@ module dstress.run.opCatAssign_01; int main(){ - char[] string; - string ~= "abc"; - assert(string.length==3); + string x; + x ~= "abc"; + assert(x.length==3); return 0; } diff -r ec5e144583ea -r 36bedfa079e6 run/s/string_postfix_06_A.d --- a/run/s/string_postfix_06_A.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/s/string_postfix_06_A.d Sun Aug 19 19:15:01 2007 +0000 @@ -4,15 +4,15 @@ module dstress.run.s.string_postfix_06_A; -int test(char[] a){ +int test(string a){ return a.length; } -int test(wchar[] a){ +int test(wstring a){ return a.length + 100; } -int test(dchar[] a){ +int test(dstring a){ return a.length + 10000; } diff -r ec5e144583ea -r 36bedfa079e6 run/s/string_postfix_06_B.d --- a/run/s/string_postfix_06_B.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/s/string_postfix_06_B.d Sun Aug 19 19:15:01 2007 +0000 @@ -4,15 +4,15 @@ module dstress.run.s.string_postfix_06_B; -int test(char[] a){ +int test(string a){ return a.length; } -int test(wchar[] a){ +int test(wstring a){ return a.length + 100; } -int test(dchar[] a){ +int test(dstring a){ return a.length + 10000; } diff -r ec5e144583ea -r 36bedfa079e6 run/s/string_postfix_06_C.d --- a/run/s/string_postfix_06_C.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/s/string_postfix_06_C.d Sun Aug 19 19:15:01 2007 +0000 @@ -4,15 +4,15 @@ module dstress.run.s.string_postfix_06_C; -int test(char[] a){ +int test(string a){ return a.length; } -int test(wchar[] a){ +int test(wstring a){ return a.length + 100; } -int test(dchar[] a){ +int test(dstring a){ return a.length + 10000; } diff -r ec5e144583ea -r 36bedfa079e6 run/u/unicode_08_A.d --- a/run/u/unicode_08_A.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/u/unicode_08_A.d Sun Aug 19 19:15:01 2007 +0000 @@ -15,12 +15,12 @@ 0xB9u, 0xEFu, 0xBDu, 0x97u ]; - char[] string = "ワロスw"; + string x = "ワロスw"; - assert(string.length==master.length); + assert(x.length==master.length); for(int i=0; i