linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: David Laight <David.Laight@ACULAB.COM>,
	'Alejandro Colomar' <colomar.6.4.3@gmail.com>
Cc: "mtk.manpages@gmail.com" <mtk.manpages@gmail.com>,
	"linux-man@vger.kernel.org" <linux-man@vger.kernel.org>,
	"libc-alpha@sourceware.org" <libc-alpha@sourceware.org>,
	"gcc@gcc.gnu.org" <gcc@gcc.gnu.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2 1/2] system_data_types.7: Add 'void *'
Date: Fri, 2 Oct 2020 10:00:21 -0700	[thread overview]
Message-ID: <aecf70d7-964d-b7ea-712a-3d9108c4e9b4@cs.ucla.edu> (raw)
In-Reply-To: <a2c3ceecca7648b3bb33f1c8bf8e7893@AcuMS.aculab.com>

On 10/2/20 2:10 AM, David Laight wrote:
>>   > Also, you should
>>   > warn that because one can convert from any pointer type to void * and
>>   > then to any other pointer type, it's a deliberate hole in C's
>>   > type-checking.
>>
> That isn't what the C standard says at all.
> What is says is that you can cast any data pointer to 'void *'
> and then cast it back to the same type.

I was talking about compile-time checking; you're talking about run-time 
behavior. We're both right in our own domains. It is a tricky area, and this 
suggests that perhaps we shouldn't be trying to document this stuff in a 
libc/kernel manual.

  reply	other threads:[~2020-10-02 17:00 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <41affebd-3354-9420-0048-bffd14535e95@gmail.com>
     [not found] ` <20201001154946.104626-2-colomar.6.4.3@gmail.com>
     [not found]   ` <538b683f-01d2-6148-4f1d-1b293eb5cd6b@cs.ucla.edu>
2020-10-02  8:24     ` [PATCH v2 1/2] system_data_types.7: Add 'void *' Alejandro Colomar
2020-10-02  8:48       ` Alejandro Colomar
2020-10-02 11:44         ` Michael Kerrisk (man-pages)
2020-10-02  9:10       ` David Laight
2020-10-02 17:00         ` Paul Eggert [this message]
2020-10-02 10:49       ` Jonathan Wakely
2020-10-02 11:31         ` Michael Kerrisk (man-pages)
2020-10-02 13:06           ` Jonathan Wakely
2020-10-02 13:20             ` Alejandro Colomar
2020-10-02 13:27               ` Jonathan Wakely
2020-10-02 13:51                 ` Alejandro Colomar
2020-10-03  8:00                   ` Navigational corrections (was: Re: [PATCH v2 1/2] system_data_types.7: Add 'void *') Michael Kerrisk (man-pages)
2020-10-03  9:16                     ` Navigational corrections Alejandro Colomar
2020-10-03 11:39                       ` Michael Kerrisk (man-pages)
2020-10-05 22:08                         ` Alejandro Colomar
2020-10-07  6:53                           ` Michael Kerrisk (man-pages)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aecf70d7-964d-b7ea-712a-3d9108c4e9b4@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=David.Laight@ACULAB.COM \
    --cc=colomar.6.4.3@gmail.com \
    --cc=gcc@gcc.gnu.org \
    --cc=libc-alpha@sourceware.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-man@vger.kernel.org \
    --cc=mtk.manpages@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).