DMD 0.168 release

nazo lovesyao at gmail.com
Tue Oct 3 03:54:38 PDT 2006


Walter Bright wrote:
> Better array literals.
array literal is still very buggy

*Case1: array literal with template
template test(char[] val){
   const char[] test2=val;
}

mixin test!(['a','b','c']);

Case2: array literal with cast and const
const ubyte[] t=cast(ubyte[])['a','b','c'];

Case3: append non-array value
void main(){
   writefln([1,2,3]~2);
}



More information about the Digitalmars-d-announce mailing list