Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
NowthatisTV
Visitor

Possible precedence table error

See here:
http://sdkdocs.roku.com/display/sdkdoc/ ... +Reference
Topic: 3.7 Operators


Now, let's see the following example:
array[1]()

Following the table (array[1])() is executed before the array[1]. The correct would be:
1-array[1]
2-array[1]()

Therefore, a table is correct only if join in the same row, the ".", "()" and "[]". Like this:

So, in the same precedence and left-associative.

Compare to C Language table:


So my suggestion sounds correct.
0 Kudos