From bug-octave-request at bevo dot che dot wisc dot edu Sat Apr 14 12:40:11 2001 Subject: Unidentified subject! From: "John W. Eaton" To: Christoph Spiel Cc: bug-octave at bevo dot che dot wisc dot edu, cspiel@hydra.hammersmith-consulting.com Date: Sat, 14 Apr 2001 12:39:54 -0500 On 14-Apr-2001, Christoph Spiel wrote: | To: bug-octave at bevo dot che dot wisc dot edu | Cc: cspiel | Subject: is_bool mis-classifies compound expressions | | Bug report for Octave 2.1.33 configured for %OCTAVE_CANONICAL_HOST_TYPE% | | Description: | ----------- | | The built-in function is_bool works only for boolean expressions that | do not involve logical opreators like `&', or `|'. | | Repeat-By: | --------- | | octave:58> is_bool( true | true ) | ans = 0 | octave:59> is_bool( true & true ) | ans = 0 | octave:60> is_bool( true || true ) | ans = 0 | octave:61> is_bool( true && true ) | ans = 0 | | Fix: | --- | | Not a real fix, but a work-around: A real fix is already in the current CVS sources. jwe ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------