Панини от стыда в гробу переворачивается
Aug. 18th, 2014 12:54 pmРабочая переписка всё больше вызывает желание троллить, как в ЖЖ.
С полуострова Индостан пишут (насчет System Verilog, в котором можно адресовать отдельные биты или диапазоны бит у значений типа enum; чем отличается packed_dimension от другого типа dimension, несущественно для дискуссии):
(под "not correct usage" подразумевается использование более чем одной размерности)
Я отвечаю:
Для справки, там говорится "Braces ( { } ) enclose items that can be repeated zero or more times."
Сабж, короче говоря.
PS. Чёрт, надо было написать не просто "those curly braces", а "those pesky curly braces"!
С полуострова Индостан пишут (насчет System Verilog, в котором можно адресовать отдельные биты или диапазоны бит у значений типа enum; чем отличается packed_dimension от другого типа dimension, несущественно для дискуссии):
> Yes, the BNF describes only one dimension for enum. Hence it is not correct usage.
> enum [ integer_type [ signing ] { packed_dimension } ](под "not correct usage" подразумевается использование более чем одной размерности)
Я отвечаю:
Would you care to guess what those curly braces around "packed_dimension" mean? If not, please refer to the very beginning of Annex A (normative), Formal syntax section
Для справки, там говорится "Braces ( { } ) enclose items that can be repeated zero or more times."
Сабж, короче говоря.
PS. Чёрт, надо было написать не просто "those curly braces", а "those pesky curly braces"!
no subject
Date: 2014-08-18 08:10 pm (UTC)no subject
Date: 2014-08-18 08:19 pm (UTC)no subject
Date: 2014-08-18 08:56 pm (UTC)> Yes, the BNF describes only one dimension for enum. Hence it is not correct usage.
> enum [ integer_type [ signing ] { packed_dimension } ]
Dear Kumar!
Thank you for your insightful comment. Unfortunately, Annex A (normative), Formal syntax section seems to indicate that the contrary is true. In particular, it states, I quote:
"Braces ( { } ) enclose items that can be repeated zero or more times." (the emphasis is mine).
Therefore, we don't have a choice, but to come to the conclusion that usage of multiple dimensions is indeed conforming to the current standard.
Thank you again for your attention to this matter. Your feedback is much appreciated.
no subject
Date: 2014-08-18 08:58 pm (UTC)no subject
Date: 2014-08-18 08:21 pm (UTC)no subject
Date: 2014-08-18 08:25 pm (UTC)Ну написано там слово dimension один раз, а всякие значочки вокруг них, да кто ж их знает, что они значат, какая разница?
no subject
Date: 2014-08-18 09:03 pm (UTC)no subject
Date: 2014-08-18 09:25 pm (UTC)no subject
Date: 2014-08-18 11:52 pm (UTC)no subject
Date: 2014-08-19 12:49 am (UTC)no subject
Date: 2014-08-18 09:33 pm (UTC)no subject
Date: 2014-08-18 11:50 pm (UTC)no subject
Date: 2014-08-19 12:51 am (UTC)no subject
Date: 2014-08-19 02:31 am (UTC)no subject
Date: 2014-08-19 03:52 am (UTC)no subject
Date: 2014-08-19 04:31 am (UTC)no subject
Date: 2014-08-19 04:44 am (UTC)no subject
Date: 2014-08-18 10:04 pm (UTC)no subject
Date: 2014-08-19 04:36 am (UTC)(У нас я бы ожидал ответ в стиле "Thanks! I'm an idiot!" или "Oh well, looks like I'm running out of caffeine :(" )
no subject
Date: 2014-08-19 04:45 am (UTC)no subject
Date: 2014-08-19 08:16 am (UTC)no subject
Date: 2014-08-19 04:04 pm (UTC)