On Monday, 31 December 2012 at 17:43:34 UTC, Era Scarecrow wrote:
On Saturday, 29 December 2012 at 01:18:37 UTC, Peter Alexander
wrote:
1. Allow ranges to return BigInt for length.
2. Allow ranges like this but assert when .length overflows.
3. Allow ranges like this and just allow .length to overflow
dangerously.
4. Do not allow ranges like this.
Option 5: Incorporate (emulation code?) for cent/ucent, then
consider that the same as 1 but returning cent rather than
BitInt.
Two problems with this:
1. Still complicates range code (have to accomodate for both
size_t and ucent return value for .length).
2. ucent probably isn't enough either for these sorts of ranges.