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: Andreas Weber
Subject: Re: document how to derive octave_value class
Date: Thu, 16 Jan 2014 07:58:04 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10

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]