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

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

[Octave-bug-tracker] [bug #50035] OO @class/display.m: something is wron


From: Colin Macdonald
Subject: [Octave-bug-tracker] [bug #50035] OO @class/display.m: something is wrongly caching inputname
Date: Thu, 12 Jan 2017 00:09:20 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0

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

                 Summary: OO @class/display.m: something is wrongly caching
inputname
                 Project: GNU Octave
            Submitted by: cbm
            Submitted on: Thu 12 Jan 2017 12:09:18 AM GMT
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Suppose I have a simple class "@me" with the following simple
"@me/display.m":


function display(x)
  disp(['input name is ' inputname(1)])
endfunction


With hg tip, I no longer get the empty string when I should, but rather some
cached version:


>> me(2)       % correct
input name is
>> y = me(3)   % correct
input name is y
>> me(4)       % wtf!, should be blank
input name is y
>> x = me(5)   % correct
input name is x
>> me(6)       % should be blank
input name is x
>> me(7)       % should be blank
input name is x


If I make some random change to the file "@me/display.m" then it works again,
until I display one that is assigned to a variable name.  This is why it looks
like some caching problem to me.

I haven't yet bisected, but something in the last 6 months or so as I had
previous "4.3.0+" versions working properly.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 12 Jan 2017 12:09:18 AM GMT  Name: display.m  Size: 64B   By: cbm

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

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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