Chuck Esterbrook wrote:
But um, wouldn't comparing strings be awfully slow?
Sure, if you only ever used full strings. However, most languages transform constant strings into a pointer and then only work with the pointers unless they absolutely have to switch it back to text.
This is one of the reasons why immutable strings are a *good* thing. String comparison is effectively only ever a pointer comparison.
-a -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg
