Re: Do we care if C compilers start allowing "." on pointers?
"Paul E. McKenney" <[email protected]>
| Newsgroups | org.kernel.vger.linux-toolchains |
|---|---|
| Message-ID | <e46c4ec1-30d6-43fe-9b5f-c3ed1007e454@paulmck-laptop> |
On Mon, Jan 13, 2025 at 12:16:24PM +0100, Peter Zijlstra wrote: > On Fri, Jan 10, 2025 at 07:02:14AM -0800, Paul E. McKenney wrote: > > Hello! > > > > Currently, given a pointer "p", C allows p->a but not p.a. There is a > > proposal from C++ [1] that is being considered for C. > > > > Do we care? > > After buying a new WTF'o'meter -- reading about this proposal definitely > shattered the old one -- I'm with everybody else so far, this will not > make C better, and if it ever were to pass, we should ensure the kernel > does not use it. You should see some of the other proposals! Or maybe not? After all, you should get some use out of your new WTF'o'meter. ;-) Thanx, Paul