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

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

[Octave-bug-tracker] [bug #47693] Private functions undefined after modi


From: Francesco Faccio
Subject: [Octave-bug-tracker] [bug #47693] Private functions undefined after modifying a private function which call them
Date: Thu, 14 Apr 2016 13:12:48 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

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

                 Summary: Private functions undefined after modifying a
private function which call them
                 Project: GNU Octave
            Submitted by: francesco_faccio
            Submitted on: Thu 14 Apr 2016 01:12:47 PM GMT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Other
                  Status: None
             Assigned to: None
         Originator Name: Francesco Faccio
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

When I run Octave 4.1.0+ using the graphical user interface, if I modify a
private function that calls other private functions, these private functions
will be considered undefined until I restart Octave.

Consider as an example the file attached:

I run func() which calls private1() which calls private2() which prints a
message as expected:


>> func()
Hello from p2


if I modify private1.m without restarting Octave (adding for example a blank
space), I save it, and I run func() again I get:


>> func()
error: 'private2' undefined near line 4 column 1
error: called from
    private1 at line 4 column 1
    func at line 3 column 1


If I restart Octave then everything works. This affects only private
functions.

I've found this bug in Octave 4.1.0+ using Ubuntu 15.10 and in Octave 4.0.0
using Windows 10. 



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 14 Apr 2016 01:12:47 PM GMT  Name: example.zip  Size: 765B   By:
francesco_faccio

<http://savannah.gnu.org/bugs/download.php?file_id=36924>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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