One of our apps has a C++ layer on top of FORTRAN. Lots of our C++ functions call the FORTRAN and have string arrays returned (in arguments). Currently this is done by allocating one large char variable in C++ and calling the FORTRAN, which actually returns an array of strings. We then have to take the C++ char variable and chop it back up into a 'proper' array. This takes an inordinate amount of string manipulation. Can you return an array of strings from FORTRAN as an array of strings in C++? (Can you even have arrays of character data in C++?). It would be nice, and a lot quicker and less 'dangerous' if I could avoid lots of space stripping and memcpy's....?
For more complete information about compiler optimizations, see our Optimization Notice.