bugGNU Octave - Bugs: bug #36889, inline with too many parentheses...

 
 

bug #36889: inline with too many parentheses fails to identify X variable

Submitted by:  Rik <rik5>
Submitted on:  Thu 19 Jul 2012 07:39:59 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: Wont FixAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Tue 30 Oct 2012 01:37:33 PM UTC, comment #1:

I suspect Octave current behavior is correct and this can not be fixed. Consider something like

where both matlab and octave respond with

as you would expect. Note however that "cos" was not treated as a variable as you seem to expect it should be given this bug report. When I implemented the inline function as a special type of anonymous function I explictedly excluded variables and functin calls being treated as arguments as that is what matlab did at the time.

Though I don't have access to matlab to confirm it but given the bug report

http://www.mathworks.com/matlabcentral/newsreader/view_thread/321077

I suspect matlab still behaves in the same manner. So I'm marking this bug as "Won't fix" but leaving it open to allow someone to check if Matlab treats this example in the same manner as Octave.

David Bateman <dbateman>
Project Member
Thu 19 Jul 2012 07:39:59 PM UTC, original submission:

Sample code:

The problem can be corrected by forcing recognition of the variable 'x'.

Rik <rik5>
Project Administrator

 

(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 dbateman (Posted a comment)
  • -unavailable- added by rik5 (Submitted the item)
  • -unavailable- added by rik5 (I added you to the CC list so you can follow the 'inline' bug)
  •  

    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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 10 Dec 2012 11:11:33 PM UTCrik5Open/ClosedOpen=>Closed
    Tue 30 Oct 2012 01:37:33 PM UTCdbatemanStatusNone=>Wont Fix
    Thu 19 Jul 2012 07:39:59 PM UTCrik5Carbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1