Suggestion: Remove implicit conversion from T[n] and T[] to T*

Walter Bright newshound at digitalmars.com
Mon Dec 4 16:14:04 PST 2006


Sean Kelly wrote:
> Oskar Linde wrote:
>> Removing the implicit conversion from static arrays (T[n]) and dynamic 
>> arrays (T[]) to pointers T* may be quite controversial, but would help 
>> clear up some problems and feels like the right step to take.
> 
> Would this affect the interpretation of string literals?  ie.
> 
>     printf( "hello world!" );

No. String literal implicit conversions can happen independently of 
implicit type conversions.



More information about the Digitalmars-d mailing list