A
Ashwin N
Hi all,
I know this is actually a language independent question, but I came
across it while studying Java, so well ...
What exactly is the use of specifying an associativity for unary
operators? I do know how associativity is related to precedence and I
know how it is important for "binary" operators.
For example, the Java unary operators ++, --, ~, ! all have the same
precedence and have a "right-to-left" associativity. Can anyone give me
an example where this unary operator associativity is useful and is
applied?
PS: Are there other newsgroups where this query might be more apt? If
yes, do let me know.
TIA,
~ash
I know this is actually a language independent question, but I came
across it while studying Java, so well ...
What exactly is the use of specifying an associativity for unary
operators? I do know how associativity is related to precedence and I
know how it is important for "binary" operators.
For example, the Java unary operators ++, --, ~, ! all have the same
precedence and have a "right-to-left" associativity. Can anyone give me
an example where this unary operator associativity is useful and is
applied?
PS: Are there other newsgroups where this query might be more apt? If
yes, do let me know.
TIA,
~ash