[Top][All Lists]

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

Re: Checking octave_value equality (==) without generating an error?

From: John W. Eaton
Subject: Re: Checking octave_value equality (==) without generating an error?
Date: Sat, 22 Nov 2014 17:48:56 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0

On 11/22/2014 04:40 PM, Michael Goffioul wrote:

I'm looking for a function/method that would check whether 2
octave_value objects are equal, but I don't want to generate an error
(e.g. if objects are not comparable, then I simply want to return
false). AFAIK do_binary_op will generate an error if required. Is there
such method in octave?

For the record: this is in the context of property set-accessor [1][2]


[2] http://www.mathworks.com/help/matlab/ref/meta.property.html (AbortSet)

There is isequal, but it is a .m file. Maybe it's a candidate for conversion to C++? I don't think you would need to use try/catch if done by dispatching within the octave_value class heirarchy.


reply via email to

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