Hello, I think lite-c operator ordering has a problem. When a statement has both a "member of" operator(i.e. "." and "->") and a subscription operator("[]") it handles the subscription first instead of handling them left-to-right. This causes unnecessary parentheses.

For example:

Quote:
struct ABC
{
int arr[10];
}

ABC ex;
ex.arr[0] = 5;


This causes a "subscript requires array or pointer type" error.
So what I do is:

Quote:
(ex.arr)[0] = 5;


The parentheses can get out of hand quickly and the readability of our code would improve substantially if this was fixed.

Last edited by Talemon; 04/28/14 11:50.