Feature request: Optional, simplified syntax for simple contracts

Timon Gehr timon.gehr at gmx.ch
Sat Jun 15 17:42:59 PDT 2013


On 06/16/2013 02:19 AM, Manu wrote:
> Super awesome idea! How about coma separated expressions to perform
> multiple asserts?
>
> int func(int i, int j) in(i<5, j<10)
> {
>    return i + j;
> }
>...

Use &&.



More information about the Digitalmars-d mailing list