Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #34936
| From | Steven Simpson <ss@my.domain.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: void |
| Date | 2016-07-17 09:21 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <horr5d-0gq.ln1@s.simpson148.btinternet.com> (permalink) |
| References | <void-20160716231330@ram.dialup.fu-berlin.de> <nmedlv$6im$1@dont-email.me> |
On 16/07/16 23:49, Martin Gregorie wrote: > This is unlike C, where a function declared as "void free(void ptr)" > means that free() takes an untyped pointer and returns an untyped pointer > value. Hmm? You mean "void *free(void *)", surely? > BUT note the void as a return value is ambiguous in C because it > can also mean that nothing is returned by a function. There's no ambiguity; a void return type only ever means that nothing is returned. void* is a different type, related to void mnemonically at best. -- ss at comp dot lancs dot ac dot uk
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: void Martin Gregorie <martin@address-in-sig.invalid> - 2016-07-16 22:49 +0000
Re: void Steven Simpson <ss@my.domain.invalid> - 2016-07-17 09:21 +0100
Re: void Martin Gregorie <martin@address-in-sig.invalid> - 2016-07-17 18:36 +0000
Re: void Steven Simpson <ss@my.domain.invalid> - 2016-07-17 20:17 +0100
Re: void Martin Gregorie <martin@address-in-sig.invalid> - 2016-07-17 22:15 +0000
Re: void Martin Gregorie <martin@address-in-sig.invalid> - 2016-07-17 22:26 +0000
csiph-web