« Return to Thread: C++ header files

Re: C++ header files

by smontanaro :: Rate this Message:

Reply to Author | View in Thread


    Andrew> This is probably the wrong forum, but I've never understood why
    Andrew> that was considered to be the appropriate strategy.  Why should
    Andrew> C code have a bunch of spurious C++-related fluff added?  Surely
    Andrew> the correct approach is for C++ code to wrap C includes in
    Andrew> extern "C", as the syntax would seem to indicate?

I think it's mostly because C++ is used to compile C code.  I know the
Python source code uses this technique.  I believe you can compile it with
g++.

    Andrew> My guess is that the process started when it was assumed that
    Andrew> C++ was the future of C, and eventually everything would just be
    Andrew> C++.  That is much less clearly the case, now, IMO.

Thankfully. :-)

--
Skip Montanaro - skip@... - http://www.webfast.com/~skip/
"Be different, express yourself like everyone else."

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Math-atlas-devel mailing list
Math-atlas-devel@...
https://lists.sourceforge.net/lists/listinfo/math-atlas-devel

 « Return to Thread: C++ header files