Date: Tue, 15 Oct 2024 00:33:36 -0500
> Is std::arguments modifiable?
>From the paper: "std::arguments is entirely read-only in order to not
introduce dangers surrounding global mutable state."
Jeremy
On Mon, Oct 14, 2024 at 12:44 PM Thiago Macieira via Std-Proposals
<std-proposals_at_[hidden]> wrote:
>
> On Sunday 13 October 2024 09:36:20 GMT-7 Sebastian Wittmeier via Std-Proposals
> wrote:
> > A command line is like a parameter to main, main should decide, whom to
> > forward it to.
>
> Is std::arguments modifiable? Because one of the main reasons for passing argc
> & argv to libraries is to allow them to reorder the arguments and then remove
> those that they've already parsed out of the list, so the application doesn't
> see them at all.
>
> This feature may not be in the first revision of the API, but there needs to be
> a line of sight to having it.
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
> Principal Engineer - Intel DCAI Platform & System Engineering
>
>
>
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
>From the paper: "std::arguments is entirely read-only in order to not
introduce dangers surrounding global mutable state."
Jeremy
On Mon, Oct 14, 2024 at 12:44 PM Thiago Macieira via Std-Proposals
<std-proposals_at_[hidden]> wrote:
>
> On Sunday 13 October 2024 09:36:20 GMT-7 Sebastian Wittmeier via Std-Proposals
> wrote:
> > A command line is like a parameter to main, main should decide, whom to
> > forward it to.
>
> Is std::arguments modifiable? Because one of the main reasons for passing argc
> & argv to libraries is to allow them to reorder the arguments and then remove
> those that they've already parsed out of the list, so the application doesn't
> see them at all.
>
> This feature may not be in the first revision of the API, but there needs to be
> a line of sight to having it.
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
> Principal Engineer - Intel DCAI Platform & System Engineering
>
>
>
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
Received on 2024-10-15 05:33:49