C++ Logo

std-discussion

Advanced search

Re: What is the meaning of expr-or-braced-init-list in the grammar of the term initializer?

From: Vladimir Grigoriev <vlad.moscow_at_[hidden]>
Date: Tue, 27 Jul 2021 21:13:07 +0300
I mean that when somebody reads the section «Initializers» it is entirely unclear why there is the definition of expr-or-braced-init-list that is not related to any other parts of the definition of the initializer.
 
Either there is must be a production that leads to this definition or there must be a reference to the grammar in the C++ Standard where a more complete definition is present.
 
With best regards
(Vlad from Moscow)
 
 
You can meet me at http://cpp.forum24.ru/ or www.stackoverflow.com or http://ru.stackoverflow.com
 
  
>Вторник, 27 июля 2021, 14:29 +03:00 от Antoine Viallon <antoine_at_[hidden]>:
>
>Basically, it means that expr-or-braced-init-list is… either an expression, or… a braced init list.
>
>You can then search how is an expression defined, and how a braced init list is defined.
>
>Everything is in the link I sent earlier.
>
>Have a nice day,
>Antoine Viallon
>
>----------------------------------------------------------------------
>De : Vladimir Grigoriev < vlad.moscow_at_[hidden] >
>Envoyé : 27 juillet 2021 12:46:36 GMT+02:00
>À : Antoine Viallon < antoine_at_lesviallon.fr >
>Cc : std-discussion_at_[hidden], Brian Bi < bbi5291_at_[hidden] >
>Objet : Re[2]: [std-discussion] What is the meaning of expr-or-braced-init-list in the grammar of the term initializer?
>I have not understood how this reference is related to my question.
>
>With best regards,
>(Vlad from Moscow)
>
>
>You can meet me at http://cpp.forum24.ru/ or www.stackoverflow.com or http://ru.stackoverflow.com
>
>
>>Вторник, 27 июля 2021, 12:32 +03:00 от Antoine Viallon < antoine_at_[hidden] >:
>>
>>See this:
>>http://eel.is/c++draft/dcl.init.general#nt:expr-or-braced-init-list
>>
>>Antoine Viallon
>>
>>----------------------------------------------------------------------
>>De : Vladimir Grigoriev via Std-Discussion < std-discussion_at_[hidden] >
>>Envoyé : 26 juillet 2021 22:00:50 GMT+02:00
>>À : Brian Bi < bbi5291_at_[hidden] >
>>Cc : Vladimir Grigoriev < vlad.moscow_at_[hidden] >, std-discussion_at_[hidden]
>>Objet : Re: [std-discussion] What is the meaning of expr-or-braced-init-list in the grammar of the term initializer?
>>And what?!
>>
>>
>>You can meet me at http://cpp.forum24.ru/ or www.stackoverflow.com or http://ru.stackoverflow.com
>> 
>> 
>>>Понедельник, 26 июля 2021, 22:49 +03:00 от Brian Bi < bbi5291_at_[hidden] >:
>>>
>>>See http://eel.is/c++draft/grammarindex for a list of references to expr-or-braced-init-list
>>>On Mon, Jul 26, 2021 at 3:43 PM Vladimir Grigoriev via Std-Discussion < std-discussion_at_[hidden] > wrote:
>>>>
>>>>In the section «Initializers» of the C++ Standard in the grammar that describes the term initializer there are the following lines
>>>>
>>>>expr-or-braced-init-list:
>>>>expression
>>>>braced-init-list
>>>>
>>>>But nowhere in the grammar there is a reference to this term.
>>>>
>>>>It is unclear why is it present here and how is it related to the term initializer?
>>>>
>>>>With best regards
>>>>(Vlad from Moscow)
>>>>You can meet me at http://cpp.forum24.ru/ or www.stackoverflow.com or http://ru.stackoverflow.com --
>>>>Std-Discussion mailing list
>>>>Std-Discussion_at_[hidden]rg
>>>>https://lists.isocpp.org/mailman/listinfo.cgi/std-discussion
>>>
>>>--
>>>Brian Bi
>>>
>>>
>>>
>>
>
 

Received on 2021-07-27 13:13:14