comparison tests/parser/string_1.d @ 160:6cb2f4201e2a

Improved static arrays Here is a list of some stuff that works char[3] s = "hey" char[3] s2 = s; s2[1] = 98 // no support for chars, but 98 = 'b' :) int[2] i; i[0] = 2; Still can't pass static arrays to functions
author Anders Halager <halager@gmail.com>
date Tue, 22 Jul 2008 13:29:20 +0200
parents c658172ca8a0
children 08b6ce45b456
comparison
equal deleted inserted replaced
159:a2d9121d6dff 160:6cb2f4201e2a
24 24
25 /* And some custom ones */ 25 /* And some custom ones */
26 26
27 char[8] s16 = "\x61\u05D0\U000201A4"; 27 char[8] s16 = "\x61\u05D0\U000201A4";
28 char[2] s17 = "\122\522"; 28 char[2] s17 = "\122\522";
29 char[6] s15 = x"61 62 63 64 29 char[6] s18 = x"61 62 63 64
30 65 66 67 68"; 30 65 66 67 68";
31 31
32 char[4] s16 = "\&reg;\&amp;"; 32 char[4] s19 = "\&reg;\&amp;";
33 33
34 char[4] s16 = "\&reg;\&amp;"c; 34 char[4] s20 = "\&reg;\&amp;"c;
35 wchar[2] s16 = "\&reg;\&amp;"w; 35 wchar[2] s21 = "\&reg;\&amp;"w;
36 dchar[2] s16 = "\&reg;\&amp;"d; 36 dchar[2] s22 = "\&reg;\&amp;"d;
37
38
39 37
40 return 0; 38 return 0;
41 } 39 }