RFC: Value range propagation for if-else

"Nordlöw" via Digitalmars-d digitalmars-d at puremagic.com
Sun Jun 22 13:51:41 PDT 2014


> That will only work now if you use an "else".

So you mean something like

      if(x<byte.min || x>byte.max)
          throw new InvalidArgumentException("...
      else {}

?

That seems like a strange restriction. Why is that?


More information about the Digitalmars-d mailing list