Taking address of properties
Timon Gehr
timon.gehr at gmx.ch
Thu Feb 7 16:01:44 PST 2013
On 02/07/2013 10:28 PM, Robert 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?
Of course.
> As of DIP 23, you would have to do arr.front()() in order to actually call the
> delegate.
>
I prefer DIP24.
> 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.
>
Nobody wants to be backwards compatible in this regard.
More information about the Digitalmars-d
mailing list