octave-maintainers
[Top][All Lists]
Advanced

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

Re: document how to derive octave_value class


From: Pantxo Diribarne
Subject: Re: document how to derive octave_value class
Date: Thu, 16 Jan 2014 17:39:56 +0100

Thanks Andy, it now works.

Pantxo


2014/1/16 Andreas Weber <address@hidden>
Am 15.01.2014 19:17, schrieb Pantxo Diribarne:

> 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.

I think you have to also add to your class:
  bool is_constant (void) const
  {
    return true;
  }
  bool is_defined (void) const
  {
    return true;
  }
-- Andy


reply via email to

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