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

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

[Octave-bug-tracker] [bug #39410] findobj() lacks precedence for logical


From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #39410] findobj() lacks precedence for logical expressions
Date: Fri, 05 Jul 2013 11:08:25 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?39410>

                 Summary: findobj() lacks precedence for logical expressions
                 Project: GNU Octave
            Submitted by: bpabbott
            Submitted on: Fri 05 Jul 2013 07:08:24 AM EDT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Inaccurate Result
                  Status: None
             Assigned to: None
         Originator Name: Ben Abbott
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

The logical operators supported by findobj() should parse as if they were part
of a logical equation.  For example, the current implementation does not give
precedence of "-and" over "-or".


%!xtest
%! hf = figure ("visible", "off");
%! unwind_protect
%!   ha = axes ();
%!   plot (1:10);
%!   h = findobj (hf, 'type', 'figure', ...
%!                '-or', 'parent', 1, ...
%!                '-and', 'type', 'axes')
%! unwind_protect_cleanup
%!   close (hf)
%! end_unwind_protect
%! assert (h, [hf; ha])
-verabtim-

Is there a way to do this in c++ and make use of the parser to handle the
precedence?

I'll add the above xtest to findobj().




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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