bugGNU Octave - Bugs: bug #42137, command syntax parse error with a...

 
 

bug #42137: command syntax parse error with a comma: "disp f(x,y)"

Submitted by:  Colin Macdonald <cbm>
Submitted on:  Thu 17 Apr 2014 04:14:38 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.8.1Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 17 Apr 2014 05:21:45 PM UTC, comment #3:

This problem has already been fixed on the GUI branch, so I'm closing this report.

The fix will be part of the next major release, probably 4.0.

If you need this before then, you'll have to build the Mercurial sources using either the default or gui-release branch.

John W. Eaton <jwe>
Project Administrator
Thu 17 Apr 2014 04:42:36 PM UTC, comment #2:

Btw, you can say "Matlab". It's not Lord Voldemort.

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Thu 17 Apr 2014 04:17:29 PM UTC, comment #1:

Hope it was clear, example 2 is supposed to demonstrate that the different treatment is due to the comma.

Colin Macdonald <cbm>
Thu 17 Apr 2014 04:14:38 PM UTC, original submission:

Apologies if I don't know the terminology: one can call a function without parenthesis like
And that is the same as disp('colin').

## Example 1

The first works but latter fails.

This works in Mtlb. Its used in their Symbolic Toolbox and I tried to copy the feature for octsympy. A workaround is for users to call:

syms 'f(x,y)'

or

f(x,y) = sym('f(x,y')

(the latter being all syms does anyway)

## Example 2

Octave:

The other guys:

Its the same in Octave 3.6.4, not a regression.

Colin Macdonald <cbm>

 

(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 jwe (Posted a comment)
  • -unavailable- added by jordigh (Updated the item)
  • -unavailable- added by cbm (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 17 Apr 2014 05:21:45 PM UTCjweStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Thu 17 Apr 2014 04:42:00 PM UTCjordighStatusNone=>Confirmed
      Summarynon-parenthesis function calls parse error: "fcn f(x,y)"=>command syntax parse error with a comma: "disp f(x,y)"

    Back to the top


    Powered by Savane 3.1-cleanup1