Tutorial on D ranges now on reddit

deadalnix deadalnix at gmail.com
Sat Jan 28 04:09:12 PST 2012


Le 28/01/2012 04:10, Jonathan M Davis a écrit :
> On Saturday, January 28, 2012 04:05:53 deadalnix wrote:
>> Le 28/01/2012 03:08, Andrei Alexandrescu a écrit :
>>> Just posted it:
>>> http://www.reddit.com/r/programming/comments/ozzgn/tutorial_on_d_ranges/
>>>
>>> Andrei
>>
>> In this tutorial, save is not a property. I see a lot of code where it is.
>>
>> I do think that save shouldn't be a property, but it would be very
>> interesting if a clear guideline was written on that point.
>
> No guide needed. It must be a property, or it won't compile with -property.
> The fact that properties haven't been being enforced is what's making it so
> that people are mistakenly not making save a property. As soon as -property
> becomes the normal compiler behavior, anything that has save as a function
> rather than a property won't compile.
>
> - Jonathan M Davis

So this tutorial has to be corrected.


More information about the Digitalmars-d mailing list