Известный Болтун
Зарегистрирован: 01 July 2006
Сообщения: 628
Примеры кода: 0
|
Re[2]: Проблемы с приоритетом операторов |
18 January 2007 14:55 |
|
|
|
|
Здравствуйте, desco, Вы писали:
D>D>14.13 Conditional operator
D><skipped>
D>The conditional operator is right-associative, meaning that operations are grouped from right to left.
D>[Example: An expression of the form a ? b : c ? d : e is evaluated as a ? b : (c ? d : e). end
D>example]
14.2.1 Operator precedence and associativity
<skipped>
When an operand occurs between two operators with the same precedence, the associativity of the operators controls the order in which the operations are performed
А где же в моем примере одинаковый приоритет? Приоритет как раз разный...
P.S. Я нашел ту тему. Grammar ambiguities in C# 2.0
Данное сообщение получено с сайта RSDN
|
|