<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Le 01/10/2015 22:06, Samuel Gougeon a
      écrit :<br>
    </div>
    <blockquote cite="mid:560D925C.3000709@free.fr" type="cite">
      <blockquote type="cite">.../...
        <br>
        <br>
        3. Clarify "a:b:c" ranges when one of a, b or c is infinite
        (%inf) or Not a Number (%nan); or when b is 0.
        <br>
        .../..<br>
      </blockquote>
      <br>
      What about this alternative?:
      <br>
      By decreasing priority (read "else" at the end of each line):
      <br>
      a) if stop is %nan => error
      <br>
      b) if start or step is %nan => returns %nan
      <br>
      c) = iii): if start < end && step < 0 => return
      [], even if start, step or stop is/are inf/-inf
      <br>
      d) = iv): if start > end && step > 0 => return
      [], even if start, step or stop is/are inf/-inf
      <br>
      e) if neither |start| nor |stop| are inf, && |step|==inf
      => return start
      <br>
    </blockquote>
    .<br>
    Actually, even if |start| is inf, returning start (so +/-inf) would
    be relevant. <br>
    Updated proposal:<br>
    a) if stop is %nan => error
    <br>
    b) if start or step is %nan => returns %nan
    <br>
    c) = iii): if start < end && step < 0 => return [],
    even if start, step or stop is/are inf/-inf
    <br>
    d) = iv): if start > end && step > 0 => return [],
    even if start, step or stop is/are inf/-inf
    <br>
    e) if<code class="moz-txt-verticalline"><span class="moz-txt-tag"></span><span
        class="moz-txt-tag"></span></code> <code
      class="moz-txt-verticalline"><span class="moz-txt-tag">|</span>stop<span
        class="moz-txt-tag">|</span></code> ~= inf  && <code
      class="moz-txt-verticalline"><span class="moz-txt-tag">|</span>step<span
        class="moz-txt-tag">|</span></code>==inf => return start
    (even if it is +-inf)
    <br>
    f) if start or stop or both are inf or -inf => error, even when <code
      class="moz-txt-verticalline"><span class="moz-txt-tag">|</span>step<span
        class="moz-txt-tag">|</span></code> is inf<br>
    g) otherwise: normal computation.<br>
    <br>
    Samuel<br>
    <br>
  </body>
</html>