NowthatisTV
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2015
07:15 PM
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.
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.