Subject: [std-proposals] Proposal - Allow '.' operator to work on pointers (again sortof)
From: J Decker (d3ck0r_at_[hidden])
Date: 2020-03-04 18:44:28
Reformatted this to resemble standard proposal
It fails to be ' The proposal may be in PDF, HTML, or plain text formats. '
C Standard section 22.214.171.124 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.
C++ Standard section 126.96.36.199 Class member access
add: if the first expression of (dot) is a pointer [to an object], then
E1.E2 is converted to (*(E1)).E2 .
STD-PROPOSALS list run by herb.sutter at gmail.com
Standard Proposals Archives on Google Groups