Functions | Variables

pt-binop.cc File Reference

#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"
Include dependency graph for pt-binop.cc:

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 \"local\" option, the variable is\n\ changed locally for the function and any subroutines it calls. The original\n\ variable value is restored when exiting the function.\n\ @end deftypefn")

Variables

static bool Vdo_braindead_shortcircuit_evaluation

Function Documentation

DEFUN ( do_braindead_shortcircuit_evaluation  ,
args  ,
nargout   
)

Definition at line 281 of file pt-binop.cc.

References SET_INTERNAL_VARIABLE.


Variable Documentation

Definition at line 39 of file pt-binop.cc.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines