[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Dynamic access to data structure
From: |
Marco Canini |
Subject: |
Dynamic access to data structure |
Date: |
31 May 2003 19:13:56 +0200 |
I need help in finding a way to access to data structure members
dynamically.
What i mean is:
given a structure like this
a =
{
b = 1
c = 2
}
i want to get/set a member which name is contained in a string, say
d = "b"
i would like to know if there's something like
struct_set_member(a, d, 3)
and
struct_get_member(a, d)
ans = 1
I really need a solution to this problem.
Thanks in advice.
--
Marco Canini <address@hidden>
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- Dynamic access to data structure,
Marco Canini <=