How to use sprintf
Alexander
aldem+dmars at nk7.net
Tue Apr 26 06:11:30 PDT 2011
On 26.04.2011 13:59, Steven Schveighoffer wrote:
> Currently, casting an array to a pointer is a special case of casting in the compiler, which basically returns arr.ptr. However, that functionality is already available via arr.ptr.
To me (coming from C/C++) it looks more natural to cast instead if using arr.ptr. After all, array is a pointer (=reference), and arrays are not structs (=values), so I see no reason to disallow this, to be honest.
And, indeed, once disallowed, it will break a lot of existing code...
/Alexander
More information about the Digitalmars-d
mailing list