View Single Post
Old 03-22-2005, 02:00 PM   #8 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,736
redhead is on a distinguished road
could this be of any interest ?
Or am i wrong here assuming you want pointers to functions in an array..
If you want to do the equivalent of something like:
Code:
Array $my_variables = { "item1", "item2", "item3"};
foreach ($item in $my_variables)
      exec($item);
Not specific any language here, but I think you'd get my guess, as to you're using strings to represent the variable names and uppon execution you want to access the variable values instead of the strings representing them..

It can't be done the way you are trying in C/C++
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote