Date: Mon, 21 Sep 2026 20:14:54 +0200
This is not “reintroducing” register! The register keyword did something different than what you are suggesting. And I believe it is still part of the C standard (or did this change?). It would not make sense to use the same keyword as in C, but to mean something entirely different.
> On Sep 21, 2026, at 2:08 PM, Liam Graham via Std-Proposals <std-proposals_at_[hidden]> wrote:
>
>
> Treat it like a storage class, not as a compiler hint
>
> Register int X["R8"]
> Or perhaps
> Register int X[0] where [N] is the register file index. The issue is calling conventions. But allow the developer to shoot themselves in the foot if they choose.
>
> #pragma register(RAX)
> [[register:RAX]]
>
> Etc etc
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
> On Sep 21, 2026, at 2:08 PM, Liam Graham via Std-Proposals <std-proposals_at_[hidden]> wrote:
>
>
> Treat it like a storage class, not as a compiler hint
>
> Register int X["R8"]
> Or perhaps
> Register int X[0] where [N] is the register file index. The issue is calling conventions. But allow the developer to shoot themselves in the foot if they choose.
>
> #pragma register(RAX)
> [[register:RAX]]
>
> Etc etc
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
Received on 2026-09-21 18:15:08
