octave-maintainers
[Top][All Lists]
Advanced

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

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


From: Daniel J Sebald
Subject: Re: Checking octave_value equality (==) without generating an error?
Date: Sat, 22 Nov 2014 15:45:36 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16

Try "try".

Dan


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

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]

Michael.


[1]
http://www.mathworks.com/help/matlab/matlab_oop/property-access-methods.html#brgsek9-3
[2] http://www.mathworks.com/help/matlab/ref/meta.property.html (AbortSet)


--

Dan Sebald
email: daniel(DOT)sebald(AT)ieee(DOT)org
URL: http://www(DOT)dansebald(DOT)com



reply via email to

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