exove
exove
CC#
Created by exove on 3/4/2023 in #help
❔ Need help explaining precedence in C#
i think i understand more, ty
27 replies
CC#
Created by exove on 3/4/2023 in #help
❔ Need help explaining precedence in C#
so += is right, but + is left
27 replies
CC#
Created by exove on 3/4/2023 in #help
❔ Need help explaining precedence in C#
but
27 replies
CC#
Created by exove on 3/4/2023 in #help
❔ Need help explaining precedence in C#
why if its right associative
27 replies
CC#
Created by exove on 3/4/2023 in #help
❔ Need help explaining precedence in C#
y = y + (y = 5) so y = 5 is first so y = 5 + 5
27 replies
CC#
Created by exove on 3/4/2023 in #help
❔ Need help explaining precedence in C#
not sure i understant
27 replies
CC#
Created by exove on 3/4/2023 in #help
❔ Need help explaining precedence in C#
"Right-associative operators are evaluated in order from right to left. The assignment operators, the null-coalescing operators, lambdas, and the conditional operator ?: are right-associative. For example, x = y = z is evaluated as x = (y = z)."
27 replies
CC#
Created by exove on 3/4/2023 in #help
❔ Need help explaining precedence in C#
so why would x += y be first
27 replies
CC#
Created by exove on 3/4/2023 in #help
❔ Need help explaining precedence in C#
but isnt += and = right associative?
27 replies