|
That works fine in java-script (and I think in Java, though I''m not sure cause I''ve never tried) because its interpreted. C/C++, are not, so that won''t work. The compiler doesn''t save variable names or anything like that, it just converts them to addresses in memory.
There''s probably a way around it, but I guarantee you it isn''t easy and it would most likely have to be done at the preprocessor level. I would just do an array (that''s what they''re there for);
|
That code will call "Function" on each of the lists in the array "Lists."
If that doesn''t help, let me know.
---Dan