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

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

[Octave-bug-tracker] [bug #58953] Error with 'end' in index expression w


From: Fernando
Subject: [Octave-bug-tracker] [bug #58953] Error with 'end' in index expression with nested function calls
Date: Thu, 24 Sep 2020 13:02:34 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0

Follow-up Comment #60, bug #58953 (project octave):

jwe, I wonder why it is necessary to call the method
tree_evaluator::set_dispatch_class in tree_evaluator::evaluate_end_expression,
just before calling a user-defined "end" method. The fragment of code is:


        if (meth.is_defined ())
          {
            unwind_action
              act ([this] (const std::string& cls)
                   {
                     set_dispatch_class (cls);
                   }, get_dispatch_class ());

            set_dispatch_class (dispatch_class);

            return m_interpreter.feval
              (meth, ovl (expr_result, m_index_position+1, m_num_indices),
1);
          }


Everything seems to work fine if I remove the call to set_dispatch_class.

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Mensaje enviado vía Savannah
  https://savannah.gnu.org/




reply via email to

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