Quote:
Originally Posted by coreys
That doesn't exactly prove you are right.
My guess is behind the scenes TStaticVars and related objects have an id that it checks against with equality checks.
|
As far as I know, GS2 uses strings as its internal data type which everything gets converted to and stored as (think arrays).
I'm just saying that the name is likely what it is checking for a comparison, since it is a string that will always be there, and GS2 likes strings.
There is no way to really know what the comparison is unless Stefan tells us, or someone writes a test case that is explicit enough.
I certainly wouldn't make use of any of the code posted in this thread because I don't know exactly what it is doing and it would also be unclear and potentially misleading to anyone else who looks at the code.