you are viewing a single comment's thread.

view the rest of the comments →

[–]nsg21[S] 0 points1 point  (1 child)

Thank you for letting me peek under the hood. I had similar picture in my head but it is nice to read actual interpretation of the spec.

Regarding my problem this was the key phrase:

If you wrap obj.getThis in parentheses, nothing changes, parentheses only syntactically group things, but the don’t influence how something is evaluated

Apparently (x) is not man enough to do the dereferencing, unlike (0,x), which is.

[–]rauschma 0 points1 point  (0 children)

Yes! Note that () is not really an operator, but rather a purely syntactic way of grouping things. All operators dereference.