The new, new phobos sneak preview
Benji Smith
dlanguage at benjismith.net
Mon Apr 13 19:28:33 PDT 2009
Andrei Alexandrescu wrote:
> Daniel Keep wrote:
>> Actually, I've been thinking and I realised that in 95% of cases, you
>> can assume a range is resumable if it has no references.
>
> Well I'm not so sure. How about a range around an integral file handle
> or socket?
If ranges can advertise their resumability, it wouldn't be hard to write
a simple template wrapper that provides resumability to an underlying
non-resumable range.
--benji
More information about the Digitalmars-d
mailing list