C++ Logo

std-proposals

Advanced search

Re: [std-proposals] A draft for a std::arguments proposal

From: Tiago Freire <tmiguelf_at_[hidden]>
Date: Wed, 16 Oct 2024 04:41:56 +0000
> Well, then the rest of my email applies: what's the path toward making it modifiable?

Is there anything stopping you from making a copy?


________________________________
From: Std-Proposals <std-proposals-bounces_at_[hidden]> on behalf of Thiago Macieira via Std-Proposals <std-proposals_at_[hidden]>
Sent: Wednesday, October 16, 2024 1:48:15 AM
To: std-proposals_at_[hidden] <std-proposals_at_[hidden]>
Cc: Thiago Macieira <thiago_at_[hidden]>
Subject: Re: [std-proposals] A draft for a std::arguments proposal

On Monday 14 October 2024 22:33:36 GMT-7 Jeremy Rifkin via Std-Proposals
wrote:
> > Is std::arguments modifiable?
>
> From the paper: "std::arguments is entirely read-only in order to not
> introduce dangers surrounding global mutable state."
>
> Jeremy

Well, then the rest of my email applies: what's the path toward making it
modifiable?

A forever-read-only std::arguments is dead-on-arrival for Qt. We *must* modify
the arguments and remove options that we've processed, so the applications
don't have to.

--
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-16 04:42:03