Re: [rules-users] Easy mistake... - drools operator precedence

2013-02-18 Thread Geoffrey De Smet
Op 18-02-13 16:34, Willem van Asperen schreef: On 02/18/2013 02:35 PM, Geoffrey De Smet wrote: Op 18-02-13 14:00, Willem van Asperen schreef: On 02/18/2013 11:11 AM, Willem van Asperen wrote: Hi All, Just wanted to share with you an easy mistake. This is done running Drools 5.5.0.Final.

Re: [rules-users] Easy mistake... - drools operator precedence

2013-02-18 Thread Willem van Asperen
On 02/18/2013 02:35 PM, Geoffrey De Smet wrote: > > Op 18-02-13 14:00, Willem van Asperen schreef: >> On 02/18/2013 11:11 AM, Willem van Asperen wrote: >>> Hi All, >>> >>> Just wanted to share with you an easy mistake. This is done running >>> Drools 5.5.0.Final. >>> >>> Imagine a fact >>> >>> |Che

Re: [rules-users] Easy mistake... - drools operator precedence

2013-02-18 Thread Geoffrey De Smet
Op 18-02-13 15:09, Wolfgang Laun schreef: > On 18/02/2013, Geoffrey De Smet wrote: >> I think so too. >> It looks like the : operator has a higher precedence then + (and >> therefor >= too), which is a bit surprising indeed. >> Personally, I never mix the : operator with other operators, to avoid

Re: [rules-users] Easy mistake... - drools operator precedence

2013-02-18 Thread Wolfgang Laun
On 18/02/2013, Geoffrey De Smet wrote: > I think so too. > It looks like the : operator has a higher precedence then + (and > therefor >= too), which is a bit surprising indeed. > Personally, I never mix the : operator with other operators, to avoid > having to worry about the precendence. Is it

Re: [rules-users] Easy mistake... - drools operator precedence

2013-02-18 Thread Geoffrey De Smet
Op 18-02-13 14:00, Willem van Asperen schreef: On 02/18/2013 11:11 AM, Willem van Asperen wrote: Hi All, Just wanted to share with you an easy mistake. This is done running Drools 5.5.0.Final. Imagine a fact |Cheese (|| ||creationTick : double|| ||preservationTicks : double|| ||)|

Re: [rules-users] Easy mistake...

2013-02-18 Thread Willem van Asperen
On 02/18/2013 11:11 AM, Willem van Asperen wrote: > Hi All, > > Just wanted to share with you an easy mistake. This is done running > Drools 5.5.0.Final. > > Imagine a fact > > |Cheese (|| > ||creationTick : double|| > ||preservationTicks : double|| > ||)| > > Then the following does not do

[rules-users] Easy mistake...

2013-02-18 Thread Willem van Asperen
Hi All, Just wanted to share with you an easy mistake. This is done running Drools 5.5.0.Final. Imagine a fact |Cheese (|| ||creationTick : double|| ||preservationTicks : double|| ||)| Then the following does not do what you expect: |rule "dump old cheese"|| ||when|| ||$c :