Since it returns a "char *" which is a C type with no OOB length information, it needs to be null-terminated. New Strings are terminated now, but if you take a slice that ends before the original string ends, the substring isn't null-terminated. This is fine as long as it's a String which has a length(), but when you cast it to char* that information is lost.
Robert de Forest ( crag ) - 2000-11-05 11:50:00 PST
Request For Enhancement