ideas about ranges

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Fri May 22 18:25:14 PDT 2009


Jason House wrote:
> Steven Schveighoffer wrote:
> 
>> No, you need a pointer.  If T is a reference type, how do you distinguish
>> a null element from the end of the iteration?
> 
> Do you have any common cases where a range would generate nulls as part of 
> its normal output?  I think using the natural null feature of reference 
> types is a clean and reasonable solution.
> 

You could have a vector containing plenty of null references.

Andrei



More information about the Digitalmars-d mailing list