[Top][All Lists]

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

comparision of octave_value

From: Nimrod Mesika
Subject: comparision of octave_value
Date: Wed, 23 Aug 2000 03:17:08 +0300
User-agent: Mutt/1.2i

Is it possible to compare (equal/not equal) two octave_values
without explicitly checking for each possible type?

I'm trying to implement Matlab's findobj() function which can find
an object using one of its properties. Properties are octave_values
(sometimes strings, scalars, matrices).

The following code does *not* work:
        octave_value value = obj->get(property);
        if ( (value == args(1) ).bool_value() ) {


Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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