Frank Heckenbach wrote:
In general it doesn't. This particular type is currently passed by reference (as `const'), so for a temporary work-around (until GPC has short strings) it may be acceptable.
How do I know which types are or are not currently passed by reference ?
But actually I think you have a problem here. If you need a reference in the call, and only have a string value, you usually need a variable to assign it to. I know this might be quite uncomfortable to do in each call, but anything else seems rather fragile.
Whether it is "fragile" or not, is not the issue, Peter, Gale and I have to change the interfaces with each version of GPC anyway. The question each time is - can it be done at all ?
You might want to consider writing wrapper routines (that accept string values and pass references).
When I look out of the window, I see a long row of programmers, all volunteering to write wrappers for 268 units with 245991 lines of declarations.
Regards,
Adriaan van Os