"RokuKevin" wrote:
It's not just strings that are affected by this issue. It's any intrinsic type that can be autoboxed.... Including
Integer, roInteger
There is no "roInteger", is there? Other than one place in the docs:
"BrightScript 3 Compatibility" wrote:
* Container components now store intrinsic typed values, not an auto boxed values. In other words, a=[5] will store an integer 5 in an array, not an roInteger component. This change causes less memory to be used, and execution to be faster.
For better or worse, boxed Integer seems to be "roInt"
BrightScript Debugger> ? createObject("roInteger")
invalid
BrightScript Debugger> ? createObject("roInt")
0
PS. Wait... whaaaaat? What magic is this
BrightScript Debugger> i = 42
BrightScript Debugger> arr = [i]
BrightScript Debugger> j = arr[0]
BrightScript Debugger> ? type(i), type(j)
Integer roInteger
What's the difference between roInteger and roInt?
And documentation above just said "a=[5] will store an integer 5 in an array, not an roInteger"?