1. Use the C++ String class
2. Use the rfb/util.h:CharArray class
3. Use standard C strings with *printf() and str*() functions

From my point of view the best solution will be to use variant 3.
(C-like handling) because you don't have to deal with objects and
affraid of additional overhead. But the 1. variant is probably
also a good idea.

The 2. variant should not be choosen because I don't see any advantage
from CharArray class.

What is your opinion? Do you vote for C or C++? ;)

I'm no fan of C++ either, but the string features is actually one of those things that I like.

Aren't the three different variants above somewhat apples and oranges? If I remember correctly, both 1 and 2 can handle embedded null characters, while 3 cannot. At least not without passing along an extra variable that indicates the length. OTOH, perhaps strings with embedded nulls are uncommon.


Regards, ---
Peter Åstrand           ThinLinc Chief Developer
Cendio AB               http://www.cendio.com
Wallenbergs gata 4
583 30 Linköping        Phone: +46-13-21 46 00
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tigervnc-devel mailing list
Tigervnc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-devel

Reply via email to