octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #48536] Broadcasting turns on globally, on its


From: Dave Goel
Subject: [Octave-bug-tracker] [bug #48536] Broadcasting turns on globally, on its own:
Date: Sat, 16 Jul 2016 23:08:38 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?48536>

                 Summary: Broadcasting turns on globally, on its own:
                 Project: GNU Octave
            Submitted by: deego
            Submitted on: Sat 16 Jul 2016 11:08:36 PM GMT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: DAVE GOEL
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Hi, here's a minimum working example, in 3.8.2, to turn on broadcasting
globally, without asking it to:


## Run the following two commands
warning ("error", "Octave:broadcast");

## Now, execute this function with an error:
testbadbroadcastmy(1);

## Now, broadcasting is on, globally!
cc=[1 1]+randn(2,2);

## As you see above, broadcasting has been turned on globally, even though it
shouldn't have!

## where, define this function in a file:


function out=testbadbroadcastmy(aa,bb)
  _bad2();
  warning ("off", "Octave:broadcast","local"); ## Notice that it ONLY does
this locally. 
  out=bb;
endfunction


function _bad2 ()
  tmp=1;
endfunction;






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?48536>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]