Re: how to define a function pointer variable witout typdef?
- From: Joe Wright <joewwright@xxxxxxxxxxx>
- Date: Sun, 29 May 2005 09:00:31 -0400
Keith Thompson wrote:
Joe Wright <joewwright@xxxxxxxxxxx> writes:
Keith Thompson wrote:
[snip]
Typedefs are a bit odd in that a typedef doesn't actually create a new type, merely an alias for an existing type. But a typedef is a definition because the thing it creates is the alias, not the type. And now we wait for the experts to point out my errors.
I suppose a typedef is not a definition. This because it does not create an object in memory. It's another case of C overloading the English language. Odd, isn't it that '#define X 2' is not a definition either.
No, it doesn't create an object in memory. Neither does a function definition. A definition, as I understand it, is a declaration that creates the named entity, rather than merely referring to an entity that's created elsewhere. The entity doesn't have to be an object.
Nice side step. In what way is a typedef a declaration creating a named entity?
-- Joe Wright mailto:joewwright@xxxxxxxxxxx "Everything should be made as simple as possible, but not simpler." --- Albert Einstein --- .
- Follow-Ups:
- Re: how to define a function pointer variable witout typdef?
- From: Keith Thompson
- Re: how to define a function pointer variable witout typdef?
- References:
- how to define a function pointer variable witout typdef?
- From: baumann@pan
- Re: how to define a function pointer variable witout typdef?
- From: sathyashrayan
- Re: how to define a function pointer variable witout typdef?
- From: sathyashrayan
- Re: how to define a function pointer variable witout typdef?
- From: Keith Thompson
- Re: how to define a function pointer variable witout typdef?
- From: Joe Wright
- Re: how to define a function pointer variable witout typdef?
- From: Keith Thompson
- how to define a function pointer variable witout typdef?
- Prev by Date: Re: why?
- Next by Date: Re: why?
- Previous by thread: Re: how to define a function pointer variable witout typdef?
- Next by thread: Re: how to define a function pointer variable witout typdef?
- Index(es):
Relevant Pages
|
|