![]() |
GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "error.h"#include "defun.h"#include "oct-obj.h"#include "ov.h"#include "profiler.h"#include "pt-binop.h"#include "pt-bp.h"#include "pt-walk.h"#include "variables.h"
Go to the source code of this file.
Functions | |
| DEFUN (do_braindead_shortcircuit_evaluation, args, nargout,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {@var{val} =} do_braindead_shortcircuit_evaluation ()\n\ @deftypefnx {Built-in Function} {@var{old_val} =} do_braindead_shortcircuit_evaluation (@var{new_val})\n\ @deftypefnx {Built-in Function} {} do_braindead_shortcircuit_evaluation (@var{new_val}, \"local\")\n\ Query or set the internal variable that controls whether Octave will\n\ do short-circuit evaluation of @samp{|} and @samp{&} operators inside the\n\ conditions of if or while statements.\n\ \n\ This feature is only provided for compatibility with @sc{matlab} and should\n\ not be used unless you are porting old code that relies on this feature.\n\ \n\ To obtain short-circuit behavior for logical expressions in new programs,\n\ you should always use the @samp{&&} and @samp{||} operators.\n\ \n\ When called from inside a function with the @qcode{\"local\"} option, the\n\ variable is changed locally for the function and any subroutines it calls. \n\ The original variable value is restored when exiting the function.\n\ @end deftypefn") | |
Variables | |
| static bool | Vdo_braindead_shortcircuit_evaluation |
| DEFUN | ( | do_braindead_shortcircuit_evaluation | , |
| args | , | ||
| nargout | |||
| ) |
Definition at line 281 of file pt-binop.cc.
References SET_INTERNAL_VARIABLE.
|
static |
Definition at line 39 of file pt-binop.cc.
1.8.1.2