|
From: | Pantxo Diribarne |
Subject: | Re: document how to derive octave_value class |
Date: | Thu, 16 Jan 2014 17:39:56 +0100 |
Am 15.01.2014 19:17, schrieb Pantxo Diribarne:
I think you have to also add to your class:
> Thank you all for those suggestions.
> I have tried to make the bare bones example (no operator declaration
> macro, only the minimum) that I was hoping to find. There is only
> constructor, destructor for the class and the DEFUN interface (see
> attached). Unfortunately It doesn't work, the object is destroyed right
> before being returned to the interpreter.
bool is_constant (void) const
{
return true;
}
bool is_defined (void) const
{
return true;
}
-- Andy
[Prev in Thread] | Current Thread | [Next in Thread] |