Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > C99 library part of C++ TR1

Reply
Thread Tools

C99 library part of C++ TR1

 
 
albert.neu@gmail.com
Guest
Posts: n/a
 
      03-31-2007
Hello!

The C99 library is part of C++ TR1.

From: http://www.dinkumware.com/tr1.aspx
comes this information:
[TR1 includes the] "C99 library, including all the numerous functions
added to the C Standard with C99, properly blended into

the C++ environment".

This is interesting, since it means that if C++ compilers adapt to
TR1, C programmers can effectively use the entire C99 (with those TR1-
compliant compilers), without any problems!

And that C99 code, can then interface nicely with C++ TR1, including
all the C++ constructs (that are not part of C99)
I wonder if C99 is really 100% a subset of C++ TR1.?



(But ahh...
A standard, especially a new one is very different from the "de facto"
standard of many people in industry.)


Kind regards,
Albert



Some Interesting docs:


Proposed additions to TR-1 to improve compatibility with C99 (P.J.
Plauger)
http://www.open-std.org/jtc1/sc22/wg...2003/n1503.txt

Draft Technical Report on C++ Library Extensions (C++ TR1 as far as I
can see...)
http://www.open-std.org/jtc1/sc22/wg...6.pdf#page=167

C99 Standard(Committee Draft 2005 - ISO/IEC 9899:TC2)
http://www.open-std.org/jtc1/sc22/wg...docs/n1124.pdf

"The New C Standard: A Cultural and Economic Commentary" by Derek M.
Jones
http://www.knosof.co.uk/cbook/cbook.html

 
Reply With Quote
 
 
 
 
albert.neu@gmail.com
Guest
Posts: n/a
 
      03-31-2007
The follwing post also provides some information

http://groups.google.at/group/comp.l...21e8171bf56dd6

 
Reply With Quote
 
 
 
 
P.J. Plauger
Guest
Posts: n/a
 
      03-31-2007
<> wrote in message
news: oups.com...

> The C99 library is part of C++ TR1.
>
> From: http://www.dinkumware.com/tr1.aspx
> comes this information:
> [TR1 includes the] "C99 library, including all the numerous functions
> added to the C Standard with C99, properly blended into
>
> the C++ environment".
>
> This is interesting, since it means that if C++ compilers adapt to
> TR1, C programmers can effectively use the entire C99 (with those TR1-
> compliant compilers), without any problems!


The C++ committee has already voted to include all the C99 additions
from TR1 (which is essentially the entire C99 library) in the next
revision of Standard C++, a.k.a. C++0X.

> And that C99 code, can then interface nicely with C++ TR1, including
> all the C++ constructs (that are not part of C99)
> I wonder if C99 is really 100% a subset of C++ TR1.?


The library perhaps, but not the language. I seriously doubt that
variable length arrays or complex arithmetic will be added to the
Standard C++ language. (There are different, and arguably better,
ways to do both already in C++.) Note, however, that the C99 and
C++ preprocessors have already been reconciled for C++0X.

P.J. Plauger
Dinkumware, Ltd.
http://www.dinkumware.com


 
Reply With Quote
 
Servé Laurijssen
Guest
Posts: n/a
 
      03-31-2007
"P.J. Plauger" <> wrote in message
news:-...
> <> wrote in message
> news: oups.com...
> The library perhaps, but not the language. I seriously doubt that
> variable length arrays or complex arithmetic will be added to the
> Standard C++ language. (There are different, and arguably better,
> ways to do both already in C++.)


Indeed arguably, VLA's are IMO the best way to get running programs on *ALL*
platforms. But "the C++ ways" are probably better suited for platforms with
less restrictive performance needs.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between "library parts" of C99 and "language parts" of C99 albert.neu@gmail.com C Programming 3 03-31-2007 08:14 PM
Continuing my foray into the TR1: tr1::shared_ptr<> Emmanuel Deloget C++ 3 03-03-2007 03:11 PM
C99 struct initialization (C99/gcc) jilerner@yahoo.com C Programming 3 02-20-2006 04:41 AM
Sony External Battery Charger BC-TR1 qwert2b2 Digital Photography 2 01-21-2006 06:29 AM
std::set versus tr1::unordered_set Joe Gottman C++ 1 06-04-2005 02:50 PM



Advertisments