<div>You're right. The L causes a syntax error at compile time.</div> <div> </div> <div>Outside, an eval, I ran into range problems. I was trying to multiply a bunch of integers. The product was outside the range of an integer and I ended up with garbage. One way around it would have been to force the operands of the multiplication to a long.</div> <div> </div> <div>I don't have a unit test but I'll slap one together.</div> <div> </div> <div>--Aziz<BR><BR><B><I>Michael Neale <michael.neale@gmail.com></I></B> wrote:</div> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">hmmm.. in an eval it *should* work - I assume there is a compile error that mentions the L ?<BR><BR>well this should not be a problem in 3.2, but for 3.0.x we can certainly look at it if you have a unit test.<BR><BR>A literal outside of an eval shouldn't be needed - as the type is inferenced from the facts automatically.
<BR><BR> <DIV><SPAN class=gmail_quote>On 2/3/07, <B class=gmail_sendername>Aziz Boxwala</B> <<A href="mailto:boxwala@yahoo.com">boxwala@yahoo.com</A>> wrote:</SPAN> <BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"> <DIV>Is there a way to create a long literal in a rule condition?</DIV> <DIV> </DIV> <DIV>Typing 30L results in a syntax error because of the L at the end. The error occurs even if I put this literal in eval.</DIV><SPAN class=sg> <DIV> </DIV> <DIV>--Aziz</DIV></SPAN><BR>_______________________________________________<BR>rules-users mailing list<BR><A onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A><BR><A onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.jboss.org/mailman/listinfo/rules-users"
target=_blank>https://lists.jboss.org/mailman/listinfo/rules-users </A><BR><BR></BLOCKQUOTE></DIV><BR>_______________________________________________<BR>rules-users mailing list<BR>rules-users@lists.jboss.org<BR>https://lists.jboss.org/mailman/listinfo/rules-users<BR></BLOCKQUOTE><BR>