OutputRange should be infinite?
monarch_dodra
monarchdodra at gmail.com
Sat Oct 6 01:13:40 PDT 2012
On Saturday, 6 October 2012 at 08:00:42 UTC, Johannes Pfau wrote:
> Am Fri, 05 Oct 2012 17:15:44 +0200
> schrieb "monarch_dodra" <monarchdodra at gmail.com>:
>
>> [SNIP]
>
> Couldn't we just fix std.range.put to check for an 'empty'
> property?
Well, the issue (imo) is not put's implementation: as Steven
Schveighoffer said, cramming too big into too small is wrong
(logic error).
The problem (I think), is that once a range verifies the
isOutputRange criteria, the user should be able to call "put"
without (too much) worries.
More information about the Digitalmars-d
mailing list