bugGNU Octave - Bugs: bug #35436, Private function strange behaviour

 
 

bug #35436: Private function strange behaviour

Submitted by:  RPS <ryanst>
Submitted on:  Thu 02 Feb 2012 01:26:09 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: ryanstOpen/Closed: Closed
Release: 3.4.3Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 02 Feb 2012 10:07:13 PM UTC, comment #1:

Happily this has been fixed. Please upgrade to version 3.6.0, or 3.6.1 which is scheduled for release in the next week or so. Alternatively, you can build from the Mercurial development sources.

I see that your reported OS is Microsoft Windows. You might want to check (http://www.octave.org/wiki/index.php?title=Octave_for_Windows) where links to the new 3.6.0 version are available.

Rik <rik5>
Project Administrator
Thu 02 Feb 2012 01:26:09 PM UTC, original submission:

Private function behaviour seems strange - the private function does not always override the built-in function. I've added an example to replicate the problem:

place the following function (test.m) in the test folder:

Then add the following two functions under {working folder}/private:

menu.m

sin.m

Run 'test'. The output is as follows:

In short, the private sin.m function always gets used while the menu.m function only gets used the first time. This occurs in both 3.4.3 under Windows XP and Linux (Ubuntu 11.10 in this case, the 3.4.3 version I compiled). This works properly when run in MATLAB (R2011b):

RPS <ryanst>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by ryanst (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 02 Feb 2012 10:07:13 PM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1