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

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

[Octave-bug-tracker] [bug #60237] Differente behaviour in anonymous func


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #60237] Differente behaviour in anonymous function handling
Date: Mon, 22 Mar 2021 14:13:59 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

Follow-up Comment #11, bug #60237 (project octave):

The problem described in comment #10 is related to bug #60137 but not exactly
the same.

I have a fix in progress that will allow the following to work:


function antest()
        d = 2;

        function c = bm(a)
                c = a + d;
        endfunction;

        ancall(@bm,2)
endfunction

function r = ancall(f,a)
        r = f(a) + 1;
endfunction


but the added level of indirection with the anonymous function handle exposes
another issue.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60237>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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