[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Question about short circuit operators
From: |
Robert T. Short |
Subject: |
Question about short circuit operators |
Date: |
Thu, 24 Feb 2011 14:23:26 -0800 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.4) Gecko/20091017 SeaMonkey/2.0 |
Before I submit a bug report, maybe someone can tell me that I am
missing something. Why would the following happen?
consider the following code contained in a file 'somefunc.m'
function [q] = somefunc(x,y,z)
if ( (nargin==1) | (nargin==2) )
error('die goatsucking pig');
end
end
from octave, I get
octave:1> somefunc()
warning: /home/rtshort/Mirrored/octave/Sources/00Bugs/somefunc.m:
possible Matlab-style short-circuit operator at line 3, column 20
I am running octave 3.4.0 on a debian linux (stable) system. I compiled
from the sources by
>hg update release-3-4-x
and then doing the normal build. The branch head (I think) when I made
the build was 357d593d87c1.
Bob
- Question about short circuit operators,
Robert T. Short <=
- Re: Question about short circuit operators, Jordi Gutiérrez Hermoso, 2011/02/24
- Re: Question about short circuit operators, Robert T. Short, 2011/02/24
- Re: Question about short circuit operators, Michael D Godfrey, 2011/02/24
- Re: Question about short circuit operators, CdeMills, 2011/02/25
- Re: Question about short circuit operators, Jordi Gutiérrez Hermoso, 2011/02/25
- Re: Question about short circuit operators, John W. Eaton, 2011/02/25
- Re: Question about short circuit operators, Jordi Gutiérrez Hermoso, 2011/02/25
- Re: Question about short circuit operators, Michael D Godfrey, 2011/02/25
- Re: Question about short circuit operators, Jordi Gutiérrez Hermoso, 2011/02/25