Re: Simplicity has a future
- From: Richard Heathfield <invalid@xxxxxxxxxxxxxxx>
- Date: Wed, 31 May 2006 14:25:07 +0000
Marc Boyer said:
Le 31-05-2006, Richard Heathfield <invalid@xxxxxxxxxxxxxxx> a écrit :
[Any] C programmer having trouble understanding the code would probably
have trouble understanding "Winnie the Pooh".
What is your definition of "C programmer" ?
Someone who understands C.
When did you met C beginner last time ?
Have you read this newsgroup recently?
My C++ solution, however, is even simpler!
extern "C" {
#include "my_c_solution's_header.h"
};
and linking in <insert library name here>.
So C++ is simpler than C: that is what I wanted to illustrate ;-)
If you say so. But C is simpler than C++, *next* time, because *next* time I
need to use such a function, I can do this:
#include "my_c_solution's_header.h"
and link in the appropriate library, without bothering with all that extern
"C" nonsense. We call it "code re-use", and I recommend it to you.
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
.
- Follow-Ups:
- Re: Simplicity has a future
- From: Marc Boyer
- Re: Simplicity has a future
- References:
- Simplicity has a future
- From: jacob navia
- Re: Simplicity has a future
- From: Marc Boyer
- Re: Simplicity has a future
- From: Richard Heathfield
- Re: Simplicity has a future
- From: Marc Boyer
- Simplicity has a future
- Prev by Date: Re: legality of forward declaration
- Next by Date: Re: Simplicity has a future
- Previous by thread: Re: Simplicity has a future
- Next by thread: Re: Simplicity has a future
- Index(es):
Relevant Pages
|