First class lazy Interval

Tomas Lindquist Olsen tomas.l.olsen at gmail.com
Tue Mar 3 08:37:13 PST 2009


On Tue, Mar 3, 2009 at 5:22 PM, Don <nospam at nospam.com> wrote:
> Joel C. Salomon wrote:
>>
>> Daniel Keep wrote:
>>>
>>> Yes, a..b is very nice.  It's also a bad syntax for intervals.  As Don
>>> keeps pointing out, you can't have an interval that includes int.max
>>> with that syntax.
>>
>> 4 .. int.$
>>
>> —Joel Salomon
>
> I love that real.$ is the number that's even bigger than infinity <g>.
> What if the range is stored in variables?
>
> x[a..b];
> How can you set b so that it includes x[int.max]?

How about x[a..b] vs x[a..b+] ?



More information about the Digitalmars-d mailing list