[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to derive from 'octave_base_value' ?
From: |
Søren Hauberg |
Subject: |
Re: How to derive from 'octave_base_value' ? |
Date: |
Thu, 02 Apr 2009 21:20:00 +0200 |
søn, 29 03 2009 kl. 19:03 -0400, skrev John W. Eaton:
> On 22-Mar-2009, Søren Hauberg wrote:
>
> | søn, 22 03 2009 kl. 20:53 +0100, skrev Jaroslav Hajek:
> | > I think your derived class must override octave_base_value::is_defined.
> |
> | Thanks, that was the missing part.
>
> and earlier you wrote:
>
> | 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
>
> Does this solution (using octave_value) give you the copying semantics
> that you want?
This sounds like a trick question :-) I think it does what I want, but
my current code is quite poorly tested, so I'm not sure. Is there
anything I should be looking out for?
Søren
- Re: How to derive from 'octave_base_value' ?,
Søren Hauberg <=