<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
On 09/05/2011 17:57, Wolfgang Laun wrote:
<blockquote
cite="mid:BANLkTintBZu8ZckWTwD7DjbSuoQQu5z5eg@mail.gmail.com"
type="cite">On 9 May 2011 15:56, Mark Proctor <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:mproctor@codehaus.org">mproctor@codehaus.org</a>></span>
wrote:<br>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="border-left: 1px solid
rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left:
1ex;">
<div text="#000000" bgcolor="#ffffff">
<div class="im"> On 09/05/2011 12:40, Wolfgang Laun wrote:</div>
<div class="im">
<blockquote type="cite"><br>
But the following does not permit indexing: <br>
<any RHS expression from above> ==
<fieldname><br>
</blockquote>
</div>
I don't understand this question as there is no join process
in the RHS, and thus no possible indexing.<br>
<font color="#888888"> <br>
</font></div>
</blockquote>
<div><br>
I thought that a very simple transformation could fold this
back into<br>
<fieldname> == <any RHS expression from above><br>
<br>
If the "indexable" forms can be detected by checking the 1st
operand and the operator, surely the same is possible for
testing the 2nd operand, followed by swapping operands.<br>
<br>
Example:<br>
Person( name == "Fred" )<br>
same as<br>
Person( "Fred" == name ) <br>
<br>
But I don't think that this is an important feature - just
wanted to make sure what is, and what is not carried over from
legacy.<br>
</div>
</div>
</blockquote>
Sorry I got confused. When you said RHS, I thought you meant the
consequence. In theory yes it should be indexable, but not at the
moment. While we have improved the intelligence of the parser, we
have not yet done so for the indexing - so indexing is "as 5.1" for
now.<br>
<blockquote
cite="mid:BANLkTintBZu8ZckWTwD7DjbSuoQQu5z5eg@mail.gmail.com"
type="cite">
<div class="gmail_quote">
<div>
<br>
Thanks<br>
Wolfgang<br>
<br>
<br>
<br>
</div>
</div>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
rules-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-dev">https://lists.jboss.org/mailman/listinfo/rules-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>