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

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

[Octave-bug-tracker] [bug #63935] error during evaluation of conditional


From: Arun Giridhar
Subject: [Octave-bug-tracker] [bug #63935] error during evaluation of conditional in if
Date: Fri, 17 Mar 2023 14:24:51 -0400 (EDT)

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

Is this the correct evaluate function that is being called?


   1834 octave_value
   1835 tree_evaluator::evaluate (tree_decl_elt *elt)
   1836 {
   1837   // Do not allow functions to return null values.
   1838 
   1839   tree_identifier *id = elt->ident ();
   1840 
   1841   return id ? id->evaluate (*this).storable_value () : octave_value
();
   1842 }


I added a cout statement inside it and found that id is not null, so it's
returning something, not an empty octave_value.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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