Subject: Re: [std-proposals] Allow '.' to behave like '->' where it is currently an error.
From: Thiago Macieira (thiago_at_[hidden])
Date: 2020-02-20 10:54:45
On Saturday, 15 February 2020 21:14:19 PST J Decker via Std-Proposals wrote:
> I can severely scope cut this, I do really only mean that, in the current
> error condition where '.' is used and the left hand is a '*' pointer type,
> that it can fallback to being like '->' and read the value of the pointer
> instead of emitting an error.
> In the first cut, GCC C it ended up being just as easy to say '->' is the
> same as '.' but that was incidental, not by strict definition.
Before we go any further, we need WG14's opinion. The value for C++ alone is
very close to zero or even negative if C doesn't adopt the same. C++ could be
convinced to follow C for pointers but nowhere else if C adopts your proposal.
So please approach WG14 and propose that they adopt this. If they seem
agreeable to considering it, WG21 can comment on whether it is for or against
the feature. But if WG14 simply says it won't, the point is moot.
-- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Software Architect - Intel System Software Products
STD-PROPOSALS list run by herb.sutter at gmail.com
Standard Proposals Archives on Google Groups