- Recall IDL string is mapped to char*
- CORBA provides a String_var class
- Using String_var the rules are very similar to the object case
- Strings do not use reference counting, just copying
- _duplicate/_release replaced with string_dup/string_free
- In addition
- const char* values are legitimate as in parameters
- so string literals can be passed
- NULL is not a legitimate return value
- String_var correctly deals with const char* assignment
String_var x = "a string"; works properly
|