[rules-dev] [Bug]: 5.5.0: binding makes parser accept non-boolean constraint

2013-02-18 Thread Wolfgang Laun
Below is a self-contained DRL which should not compile because the sum isn't a boolean expression. (Note that omitting $x: results in the correct diagnostic predicate ... must be a boolean.) declare Foo a: double b: double end rule what when $c: Foo( $x: a + b ) then

Re: [rules-dev] [Bug] 5.5.0 Correctly compiled DRL runs into run time error: incompatible types

2013-02-18 Thread Mario Fusco
Hi Wolfgang, thanks for having reported this. I fixed it in mvel and as usual the fix will be available with the next mvel release. Cheers, Mario On Sun, Feb 17, 2013 at 5:32 PM, Wolfgang Laun wolfgang.l...@gmail.comwrote: Below is a fully self-contained DRL that compiles correctly but runs

Re: [rules-dev] [Bug]: 5.5.0: binding makes parser accept non-boolean constraint

2013-02-18 Thread Edson Tirelli
Wolfgang, Thank you for reporting. Mario is fixing it. On a related note, for Drools 5, for backward compatibility, we still allowed bindings in the middle of expressions. We were discussing if this should be disallowed from Drools 6 forward? Things like: Person( $name : name == Bob ||

Re: [rules-dev] [Bug]: 5.5.0: binding makes parser accept non-boolean constraint

2013-02-18 Thread Wolfgang Laun
I guess I've always spoken my mind in favour of a clean syntax, even if it means a little extra typing. I dislike expressions with internal bindings; the traditional binding at the start of an expression is sufficient. Cheers Wolfgang On 18/02/2013, Edson Tirelli ed.tire...@gmail.com wrote:

Re: [rules-dev] [Bug]: 5.5.0: binding makes parser accept non-boolean constraint

2013-02-18 Thread Mark Proctor
On 18 Feb 2013, at 18:38, Wolfgang Laun wolfgang.l...@gmail.com wrote: I guess I've always spoken my mind in favour of a clean syntax, even if it means a little extra typing. I dislike expressions with internal bindings; the traditional binding at the start of an expression is sufficient. I

[rules-dev] More on Field binding

2013-02-18 Thread Wolfgang Laun
On 18/02/2013, Mark Proctor mproc...@codehaus.org wrote: On 18 Feb 2013, at 18:38, Wolfgang Laun wolfgang.l...@gmail.com wrote: I don't like nested bindings, I think it was there before due to backwards compatibility. 5.1.1 permitted a binding to the field on which a constraint was based,