This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Namespace pollution


Andrew Lunn wrote:
[Puts on "Knows nothing about C++" hat]

Isn't it the compiler thats broken? key and destructor are for us
humans. All the compiler needs is pthread_key_t * and void (*) (void
*). The compile should take destructor as a comment and not a symbol.

Not if the typedef came first! Even were that true, the application would also have been entitled to do:


#define destructor void *

as a poor man's typedef.

Jifl
--
eCosCentric    http://www.eCosCentric.com/    The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[  can rejoice because thorns have roses." -Lincoln   ]-- Opinions==mine


-- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]