On Thu, 07 Feb 2013 16:28:42 -0500, Robert <jfanati...@gmx.at> wrote:

On Thu, 2013-02-07 at 16:08 -0500, Steven Schveighoffer wrote:
int delegate()[] arr;

arr.front();

That's part of the mess we are trying to clean up here? As of DIP 23,
you would have to do arr.front()() in order to actually call the
delegate.

Not with @property

The current behaviour is also that you have to do arr.front()() in order
to actually call the function. So with DIP23 in effect you would
actually have to remove @property in order to be backwards compatible.

I don't understand the point here. Why would we want to be backwards compatible with a buggy compiler?

In a bug-free implementation of arrays-as-ranges, arr[0] and arr.front should be perfectly interchangeable (with the well-known exception of strings).

-Steve

Reply via email to