help-octave
[Top][All Lists]
Advanced

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

Re: Get Global values in Oct file


From: Kai Torben Ohlhus
Subject: Re: Get Global values in Oct file
Date: Thu, 31 Oct 2019 14:54:15 +0900
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1

On 10/31/19 2:09 PM, John W. Eaton wrote:
> On 10/30/19 10:28 PM, Kai Torben Ohlhus wrote:
> 
>> @jwe: can you confirm that this is the right way to go in the future
>> with including the interpreter and using DEFMETHOD_DLD?  See your cset:
>>
>>     https://hg.savannah.gnu.org/hgweb/octave/rev/b29904962d2d
>>
>> Then I can update the demo to cause less confusion.  At least it
>> compiles and works for me without errors and warnings:
> 
> Yes, that is the way to do it in 5.1.  In the next major version you
> will be able to do this job without having to reference the symbol table
> object:
> 
>   octave_value tmp = interp.global_varval (name);
> 
> and
> 
>   interp.global_assign (name, value);
> 
> but the symbol_table functions will remain for backward compatibility.
> 
> jwe

Thank for checking jwe.  Programming oct-files really becomes a charm =)
 I improved the example on the stable branch, as it is already relevant
for Octave 5 users:

  https://hg.savannah.gnu.org/hgweb/octave/rev/18fea1c5b21a

Best,
Kai



reply via email to

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