comparison test/arrays8.d @ 175:c44e6a711885 trunk

[svn r191] Fixed: array literals did not support all type/storage combinations. Fixed: with expression had broke somewhere along the way.
author lindquist
date Wed, 07 May 2008 00:01:13 +0200
parents 2c3cd3596187
children
comparison
equal deleted inserted replaced
174:16e676ae5ab4 175:c44e6a711885
1 module arrays8; 1 module arrays8;
2
3 extern(C) int printf(char*, ...);
2 4
3 void main() 5 void main()
4 { 6 {
5 char[] a = "hello "; 7 char[] a = "hello ";
6 printf(" \"%s\".length = %u\n", a.ptr, a.length); 8 printf(" \"%s\".length = %u\n", a.ptr, a.length);