C++ Logo

std-proposals

Advanced search

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

From: Frederick Virchanza Gotham <cauldwell.thomas_at_[hidden]>
Date: Mon, 30 Sep 2024 08:13:25 +0100
On Mon, Sep 30, 2024 at 1:47 AM Jeremy Rifkin wrote:
> Hi,
> I'm drafting a proposal to add std::arguments which would provide an
> encoding-friendly and modern interface for accessing program arguments.


In your paper, you wrote:

    "Implementation on Linux and other Unixes is more challenging as there
    is currently no means at all to access argc and argv outside of or
before main"

On Linux, 'argc' and 'argv' are the first thing on the stack. Check
out this post from Summer of last year:

    https://lists.isocpp.org/std-proposals/2023/06/6906.php

Received on 2024-09-30 07:13:34