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: Bo Persson <bo_at_[hidden]>
Date: Tue, 27 Jul 2021 16:16:31 +0200
On 2021-07-27 at 12:46, Vladimir Grigoriev via Std-Discussion wrote:
> I have not understood how this reference is related to my question.

Perhaps the confusion is that the item isn't used in the section where
it is defined. However it *is* used in Statements and Expressions.

For example:

     return expr-or-braced-init-list(opt) ;


> 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
> <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]
> </compose?To=std%2ddiscussion_at_[hidden]>>
> *Envoyé :* 26 juillet 2021 22:00:50 GMT+02:00
> *À :* Brian Bi <bbi5291_at_[hidden] </compose?To=bbi5291_at_[hidden]>>
> *Cc :* Vladimir Grigoriev <vlad.moscow_at_[hidden]
> </compose?To=vlad.moscow_at_[hidden]>>, std-discussion_at_[hidden]
> </compose?To=std%2ddiscussion_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/ <http://cpp.forum24.ru/>
> or www.stackoverflow.com <http://www.stackoverflow.com> or
> http://ru.stackoverflow.com <http://ru.stackoverflow.com>
>
> Понедельник, 26 июля 2021, 22:49 +03:00 от Brian Bi
> <bbi5291_at_[hidden] </compose?To=bbi5291_at_[hidden]>>:
> See http://eel.is/c++draft/grammarindex
> <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]
> <http://e.mail.ru/compose/?mailto=mailto%3astd%2ddiscussion_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/
> <http://cpp.forum24.ru/> or www.stackoverflow.com
> <http://www.stackoverflow.com> or
> http://ru.stackoverflow.com <http://ru.stackoverflow.com>
> --
> Std-Discussion mailing list
> Std-Discussion_at_[hidden]
> <http://e.mail.ru/compose/?mailto=mailto%3aStd%2dDiscussion_at_[hidden]>
> https://lists.isocpp.org/mailman/listinfo.cgi/std-discussion
> <https://lists.isocpp.org/mailman/listinfo.cgi/std-discussion>
>
>
>
> --
> /Brian Bi/
>
>

Received on 2021-07-27 09:16:43