implicit conversions between array and pointer

Frank Benoit keinfarbton at googlemail.com
Fri Apr 25 12:59:21 PDT 2008


terranium schrieb:
> int* p;
> int[] a=[1,2,3];
> p=a;
> 
> spec says it should compile, but it won't. Where is the bug - in spec or in compiler.

In the spec, the implicit convertions to .ptr property was removed some 
time ago.

p=a.ptr;



More information about the Digitalmars-d mailing list