help-octave
[Top][All Lists]
Advanced

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

Re: How to derive from 'octave_base_value' ?


From: Jaroslav Hajek
Subject: Re: How to derive from 'octave_base_value' ?
Date: Sun, 22 Mar 2009 20:53:49 +0100

2009/3/22 Søren Hauberg <address@hidden>:
> Hi All
>
> I'd like to create a new type in Octave that simply holds a pointer to
> some object in an external library. The attached code implements a very
> simple type in Octave that just holds a string. This was the simplest
> possible type I could think of. I compile the code with
>
>  mkoctfile -Wall simple.cc
>
> In Octave I test the code by running
>
>  a = simple ("hello");
>
> which gives me the following error:
>
>  error: value on right hand side of assignment is undefined
>
> Does anybody have a hint to what I'm doing wrong?
>
> Thanks
> Søren
>

I think your derived class must override octave_base_value::is_defined.

cheers


-- 
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz



reply via email to

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