|
From: | Pantxo Diribarne |
Subject: | Re: document how to derive octave_value class |
Date: | Wed, 15 Jan 2014 19:17:28 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
Le 15/01/2014 15:21, John Swensen a
écrit :
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 compiled it using "mkoctfile hello_obj.cc", then in octave I see : octave:1> aa = hello_obj (); Hello! octave_hello installed at type-id = 54 Hello! good bye! error: value on right hand side of assignment is undefined Should I now continue on the help list ? Pantxo |
hello_obj.cc
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |