Allowing Expressions such as (low < value < high)

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Sep 4 15:54:15 PDT 2014


On Thu, 04 Sep 2014 20:29:08 +0000
"Nordlöw" via Digitalmars-d-learn <digitalmars-d-learn at puremagic.com>
wrote:

> On Thursday, 4 September 2014 at 20:03:57 UTC, Nordlöw wrote:
> >     if (low < value < high)
> 
> An alternative could be
> 
>      if (value in low..high)
and then we need new overload for 'in' operator...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20140905/8fcae9f2/attachment.sig>


More information about the Digitalmars-d-learn mailing list