Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | James Kuyper <jameskuyper@verizon.net> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: interpret this code? |
| Date | 2012-06-05 12:05 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <4FCE2E56.304@verizon.net> (permalink) |
| References | <30urs79vrgihohjaoca4g3bj1kfbcqa5jk@4ax.com> <jql115$4v4$1@dont-email.me> <jqla67$2rm$1@dont-email.me> |
On 06/05/2012 11:55 AM, Nick Bowler wrote: > On 2012-06-05 09:19:33 -0400, James Kuyper wrote: >> On 06/05/2012 08:26 AM, George wrote: > [...] >>> typedef void (*VOID_FNC)(void); > [...] >> The expansion is actually >> >> (const VOID_FUNC)NullScrnFnc >> >> The equivalent without use of typedefs would be: >> >> (void(*)(void) const)NullScrnFnc > > This is a syntax error. I think you meant: > > (void(* const)(void))NullScrnFnc You're right. >> In other words, it is an expression declaring that NullScrnFnc is an >> object of type (void(*)(void) const). > > It doesn't declare anything, and that again is not a valid type name. I got confused at one point, thinking this was occurring inside a parameter list for a function. When I corrected that misunderstanding, I failed to correct all of the writing I'd done based upon that misunderstanding.
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
interpret this code? George <gbeccles@verizon.net> - 2012-06-05 08:26 -0400
Re: interpret this code? James Kuyper <jameskuyper@verizon.net> - 2012-06-05 09:19 -0400
Re: interpret this code? Nick Bowler <nbowler@draconx.ca> - 2012-06-05 15:55 +0000
Re: interpret this code? James Kuyper <jameskuyper@verizon.net> - 2012-06-05 12:05 -0400
Re: interpret this code? "BartC" <bc@freeuk.com> - 2012-06-05 14:42 +0100
Re: interpret this code? Noob <root@127.0.0.1> - 2012-06-05 16:19 +0200
Re: interpret this code? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-06-05 14:43 +0100
Re: interpret this code? Noob <root@127.0.0.1> - 2012-06-05 16:22 +0200
Re: interpret this code? George <gbeccles@verizon.net> - 2012-06-05 22:50 -0400
csiph-web