[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: global variables
From: |
Jaroslav Hajek |
Subject: |
Re: global variables |
Date: |
Tue, 15 Dec 2009 10:18:37 +0100 |
On Tue, Dec 15, 2009 at 4:17 AM, Naveen Garg <address@hidden> wrote:
> I am trying to declare global variables from c.
> However, the following fails:
> int parse_status;
> eval_string("global gvar", false, parse_status);
> I get:
> error: eval: invalid use of statement list
> It seems to work if i put
> global gvar
> in a file called file.m
> and then run
> int parse_status;
> eval_string(source("file.m"), false, parse_status);
> Also, I can come to terms with pass by reference only semantics.
> But can't we at least get direct access to memory when using fortran_vec
> with get_global_value ?
> Octave is not multithreaded, whats the risk?
If you have a proposal for improvement of the internals of Octave, you
need to be more specific and provide detailed explanation, or (even
better) send patches. Vague requests like this are essentially
useless.
--
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz