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

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

[Octave-bug-tracker] [bug #42137] non-parenthesis function calls parse e


From: Colin Macdonald
Subject: [Octave-bug-tracker] [bug #42137] non-parenthesis function calls parse error: "fcn f(x, y)"
Date: Thu, 17 Apr 2014 16:14:39 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0

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

                 Summary: non-parenthesis function calls parse error: "fcn
f(x,y)"
                 Project: GNU Octave
            Submitted by: cbm
            Submitted on: Thu 17 Apr 2014 04:14:38 PM GMT
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.8.1
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Apologies if I don't know the terminology: one can call a function without
parenthesis like

disp colin

And that is the same as disp('colin').

## Example 1


disp f(x)
disp f(x,y)

The first works but latter fails.

This works in M*tl*b.  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:

>> disp foo(, disp bar
foo(
bar
>>


The other guys:

>> disp foo(, disp bar     
foo(, disp bar
>> 



Its the same in Octave 3.6.4, not a regression.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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