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

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

[Octave-bug-tracker] [bug #38164] inline doesn't understand x(:) (and ot


From: Jordi Gutiérrez Hermoso
Subject: [Octave-bug-tracker] [bug #38164] inline doesn't understand x(:) (and other indexing of x)
Date: Thu, 24 Jan 2013 18:02:02 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20110109 Earthmoth/3.6.13

Update of bug #38164 (project octave):

                Severity:              3 - Normal => 2 - Minor              
                Priority:              5 - Normal => 1 - Later              

    _______________________________________________________

Follow-up Comment #3:

So this is where the problem is:

http://hg.savannah.gnu.org/hgweb/octave/file/bbce6de5c0a5/libinterp/octave-value/ov-fcn-inline.cc#l704

The inline parser assumes that "foo(bar)" whatever is always a function call,
regardless of what foo and bar may be. This is actually documented: " All
arguments followed by a parenthesis are considered to be functions."

I don't know how to fix this. A reasonable thing would be to check the symbol
table for the existence of a function with this name, but exclude some
functions such as i and j.

I'm lowering the priority for this, since there are a couple of easy
work-arounds and inline functions should be deprecated in favour of anonymous
functions.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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