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

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

[Octave-bug-tracker] [bug #55523] default argument of anonymous function


From: Rik
Subject: [Octave-bug-tracker] [bug #55523] default argument of anonymous function is not bound to value of local variable
Date: Fri, 15 May 2020 16:02:06 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #7, bug #55523 (project octave):

FWIW, I wouldn't expect default initialization to work if the RHS was not a
constant.

Also, it wouldn't make much sense.  If there is a default assignment such as
"foo (a = b)" and you want to change the value that the function foo is called
with, then just call foo() with that value.  There is no reason to change the
value of b, to in turn change the value of a, to in turn call the function
foo() with the specific value.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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