Calling delegate properties without parens
Piotr Szturmaj
bncrbme at jadamspam.pl
Sun Apr 15 06:48:51 PDT 2012
Jonathan M Davis wrote:
> On Saturday, April 14, 2012 20:47:20 Piotr Szturmaj wrote:
>>
>> struct CommonInputRange(E)
>> {
>> @property bool delegate() empty;
>> @property E delegate() front;
>> void delegate() popFront;
>> }
>
> front returns an element in the range. In your case, it's returning a
> delegate, because you have a range of delegates.
Gah. That explains everything... Thanks!
More information about the Digitalmars-d-learn
mailing list