comparison test/globals1.d @ 21:8d45266bbabe trunk

[svn r25] * Fixed a lot of problems with string literals * Fixed slice-slice copying assignment
author lindquist
date Thu, 04 Oct 2007 07:01:15 +0200
parents
children d9d5d59873d8
comparison
equal deleted inserted replaced
20:42bf2eb2973b 21:8d45266bbabe
1 module globals1;
2
3 char[] gstr = "hello world";
4
5 void main()
6 {
7 printf("%.*s\n", gstr.length, gstr.ptr);
8 char[] str = gstr;
9 printf("%.*s\n", str.length, str.ptr);
10 }