[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [dm-devel] dm-cache invalidate_cblocks range parsing

On Tue, Nov 26, 2013 at 11:20:47AM -0500, Mike Snitzer wrote:
> http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt08ch19s02.html
And a counter-position:


  Integer intervals

    The notation [a .. b] when a and b are integers, or {a .. b} , or just a ..
    b is sometimes used to indicate the interval of all integers between a and b,
    including both.

    An integer interval that has a finite lower or upper endpoint always includes that endpoint.
    Therefore, the exclusion of endpoints can be explicitly denoted by
    writing a .. b − 1 , a + 1 .. b , or a + 1 .. b − 1. Alternate-bracket
    notations like [a .. b) or [a .. b[ are rarely used for integer

I recall this discussion began using ".." (so should conventionally
have included both endpoints) but was switched to "-" to save a

It's only the exposed message interface I'm talking about here: I've
no objection to the use of boundary-style ranges within the code.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]