On 05/16/2012 12:29 AM, deadalnix wrote:
Le 15/05/2012 20:34, Alex Rønne Petersen a écrit :
Besides, this is probably not going to change anyway. We're focusing on
stabilizing the language, not changing it.


This always have been a design mistake to auto cast array in pointers.
This is silent fallback to usafe world, and what we want to avoid.


Getting a pointer to the beginning of a zero-terminated string literal is perfectly safe.

This has no benefit because using .ptr isn't really complex and make the
transition obvious.

This has been raised many time in the past as being an issue, and it fit
nicely here.


This is a compile time error:

int[] arr;
int* p=arr;

What exactly are you asking for?

Having \0 terminated string in D were it has no usage is quite dumb.

What you don't seem to get is that it actually has usage.

Reply via email to