Re: JESS: Setting slot values using Java api

"Wolfgang Laun" <[email protected]>
Newsgroups gmane.comp.java.jess
Message-ID <28945_1285188992_o8MKuVC2030631_AANLkTimcBUjTvVWAK1mtXbz=Yqt5Vw+yBEWXy=cZLVaz@mail.gmail.com>
On 22 September 2010 20:26, Ernest Friedman-Hill <[email protected]> wrote:

> It's as dangerous in Java as it is in other languages. Just the other day I
> helped somebody on JavaRanch who spent days trying to figure out why their
> loop never ran:
>
>   boolean loopWhileFalse = false;
>   while (loopWhileFalse = false) {
>      ...


:) "Through tattered clothes, small vices do appear."

I always used to preach that one shall not compare booleans to true or false
when writing a condition.

-W
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.