C++ Logo

std-proposals

Advanced search

Re: Proposal - Allow '.' operator to work on pointers (again sortof)

From: Thiago Macieira <thiago_at_[hidden]>
Date: Thu, 05 Mar 2020 08:09:46 -0800
On Wednesday, 4 March 2020 16:44:28 PST J Decker via Std-Proposals wrote:
> Reformatted this to resemble standard proposal
>
> https://gist.github.com/d3x0r/f496d0032476ed8b6f980f7ed31280da
> It fails to be ' The proposal may be in PDF, HTML, or plain text formats. '
>
> TL;DR
>
> C Standard section 6.5.2.3 Structure and union members
>
> add text in [ ]
>
> 1- The first operand of the . operator shall have a qualified or
> unqualified structure or union type or [‘‘pointer to qualified or
> unqualified structure’’ or ‘‘pointer to qualified or unqualified union’’,]
> and the second operand shall name a member of that type.

Let us know how WG14 (the C language committee) reacts. C++ will not add this
feature unless C does first.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel System Software Products

Received on 2020-03-05 10:12:38