File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,10 @@ trait LiftBoolean {
12
12
13
13
trait BooleanOps extends Variables {
14
14
def infix_unary_! (x : Rep [Boolean ])(implicit pos : SourceContext ) = boolean_negate(x)
15
- def infix_&& (lhs : Rep [Boolean ], rhs : Rep [Boolean ])(implicit pos : SourceContext ) = boolean_and(lhs,rhs)
16
- def infix_|| (lhs : Rep [Boolean ], rhs : Rep [Boolean ])(implicit pos : SourceContext ) = boolean_or(lhs,rhs)
15
+ def infix_&& (lhs : Rep [Boolean ], rhs : => Rep [Boolean ])(implicit pos : SourceContext ) = boolean_and(lhs,rhs)
16
+ def infix_|| (lhs : Rep [Boolean ], rhs : => Rep [Boolean ])(implicit pos : SourceContext ) = boolean_or(lhs,rhs)
17
+
18
+ // TODO: short-circuit by default
17
19
18
20
def boolean_negate (lhs : Rep [Boolean ])(implicit pos : SourceContext ): Rep [Boolean ]
19
21
def boolean_and (lhs : Rep [Boolean ], rhs : Rep [Boolean ])(implicit pos : SourceContext ): Rep [Boolean ]
You can’t perform that action at this time.
0 commit comments