octave-maintainers
[Top][All Lists]
Advanced

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

Re: How to instantiate a user-class from octfile?


From: Colin Macdonald
Subject: Re: How to instantiate a user-class from octfile?
Date: Fri, 20 May 2016 22:16:48 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0

On 20/05/16 17:43, Mike Miller wrote:
> A way would be something like
> 
>   octave_value_list ret = feval ("Myclass", ovl ("hello"), 1);
>   octave_value x = ret(0);
> 
> I don't know if it's the only way, but pretty straightforward.

Thanks, works great.  For the record, to get feval I needed:

  #include <octave/parse.h>

thanks,
Colin



reply via email to

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