|
From: Porter, D. <don...@ni...> - 2013-01-17 19:13:31
|
You're going to have to reveal whatever secrets you're not telling, because
my copy of Tcl 8.4.14 shows:
int
Tcl_GetCharLength(objPtr)
Tcl_Obj *objPtr; /* The String object to get the num chars of. */
{
String *stringPtr;
SetStringFromAny(NULL, objPtr);
Every [string length $x] will shimmer $x to the "string" Tcl_ObjType.
________________________________________
> Looking at the 8.4 source code, it does the same. You should not see any
> difference in the shimmer pattern moving from 8.4 to 8.5.
>
> Tcl_GetCharLength() calls SetStringFromAny() which shimmers. Don't you
> see that in your examples?
That's not my experience, comparing 8.4.14 vs 8.5.8.
And practically speaking we deal with simple ascii 99.999% of the time, iso8859-1 technically. Also, most of the [string length] operations only care about !=0 tests.
-Brian
|