comparison src/octave.cc @ 11091:5677f3f7b5fa

Matlab compatible short-circuit behavior for & and | operators
author John W. Eaton <jwe@octave.org>
date Fri, 08 Oct 2010 15:22:47 -0400
parents e678346a47d9
children 8aa93f43bae8
comparison
equal deleted inserted replaced
11090:2adf4736dafa 11091:5677f3f7b5fa
567 bind_internal_variable ("allow_noninteger_range_as_index", true); 567 bind_internal_variable ("allow_noninteger_range_as_index", true);
568 bind_internal_variable ("beep_on_error", true); 568 bind_internal_variable ("beep_on_error", true);
569 bind_internal_variable ("confirm_recursive_rmdir", false); 569 bind_internal_variable ("confirm_recursive_rmdir", false);
570 bind_internal_variable ("crash_dumps_octave_core", false); 570 bind_internal_variable ("crash_dumps_octave_core", false);
571 bind_internal_variable ("default_save_options", "-mat-binary"); 571 bind_internal_variable ("default_save_options", "-mat-binary");
572 bind_internal_variable ("do_braindead_shortcircuit_evaluation", true);
572 bind_internal_variable ("fixed_point_format", true); 573 bind_internal_variable ("fixed_point_format", true);
573 bind_internal_variable ("history_timestamp_format_string", 574 bind_internal_variable ("history_timestamp_format_string",
574 "%%-- %D %I:%M %p --%%"); 575 "%%-- %D %I:%M %p --%%");
575 bind_internal_variable ("page_screen_output", false); 576 bind_internal_variable ("page_screen_output", false);
576 bind_internal_variable ("print_empty_dimensions", false); 577 bind_internal_variable ("print_empty_dimensions", false);
577 578
578 disable_warning ("Octave:abbreviated-property-match"); 579 disable_warning ("Octave:abbreviated-property-match");
579 disable_warning ("Octave:fopen-file-in-path"); 580 disable_warning ("Octave:fopen-file-in-path");
580 disable_warning ("Octave:function-name-clash"); 581 disable_warning ("Octave:function-name-clash");
581 disable_warning ("Octave:load-file-in-path"); 582 disable_warning ("Octave:load-file-in-path");
583 disable_warning ("Octave:possible-matlab-short-circuit-operator");
582 } 584 }
583 585
584 // You guessed it. 586 // You guessed it.
585 587
586 int 588 int