Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Preprocessor Overheads Date: Thu, 02 Feb 2017 15:56:27 -0800 Organization: None to speak of Lines: 20 Message-ID: References: <6f4a3c6f-a81e-4b75-9be6-67e07f6584af@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="abc513047bd7eb6502f52aab060309cd"; logging-data="7421"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18P21bPOSiZ8qACAj7+y4FM" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:LGSA/HMz+9a5XVE16sAtpyQL/co= sha1:l/+FmoNc2izyBKH6B3LnxP9yhTk= Xref: csiph.com comp.lang.c:102995 supercat@casperkitty.com writes: [...] > The purpose of a "void*" is to be a "pointer to any type". Do you have a citation for that assertion? The purpose of void* is to permit a round-trip *conversion* from foo* to void* and back to yield the original pointer value, for an object type foo. That's why assigning a foo* to a void* (or any equivalent operation: argument passing, initialization, return) *converts* the foo* value to void*. That code that implements that conversion may or may not be trivial. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"