Ranges and/versus iterators
grauzone
none at example.net
Tue Mar 23 14:06:00 PDT 2010
Steven Schveighoffer wrote:
> A while back, you identified one of the best interfaces for input ranges:
>
> E* getNext();
>
> Which allows for null returns when no data is left. The drawback is
> that E must be either referenced or allocated on the heap (providing
> storage to the function is an option). But the killer issue was that
> safeD would not allow it. However, in recent times, you have hinted
Nullable!(E) getNext(); ?
More information about the Digitalmars-d
mailing list