[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to compare 2 octave_value's without error
From: |
John W. Eaton |
Subject: |
How to compare 2 octave_value's without error |
Date: |
Sun, 20 Nov 2011 15:09:15 -0500 |
On 19-Nov-2011, Michael Goffioul wrote:
| I'm in the process of implementing waitfor and I need to compare 2
| octave_value objects, but I don't want the comparison to throw any
| error if the comparison cannot be made (like comparing apples and
| pears), I just want to return false.
|
| At the moment, I'm using the operator== but I'm sure that's not gonna
| do it. What's the recommended way to do that?
Other than not being implemented in C++, does isequal.m do what you
want? Or do you want to require that numeric objects have the same
class in order to compare equal?
jwe