[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
global variables
From: |
Naveen Garg |
Subject: |
global variables |
Date: |
Mon, 14 Dec 2009 22:17:28 -0500 |
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?
Also, is there something akin to set_local_value (similar to set_global_value)?
Thanks,
Naveen
- global variables,
Naveen Garg <=