Like Tree9Likes

Why not add CUDA forum?

This is a discussion on Why not add CUDA forum? within the General Discussions forums, part of the Community Boards category; Originally Posted by whiteflags Counting the STL (and I don't know why you would), that was literally the only thing ...

  1. #31
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,614
    Quote Originally Posted by whiteflags View Post
    Counting the STL (and I don't know why you would), that was literally the only thing unique to C++ that I learned in a class. Of course other languages have their own library code. I don't think the STL offers anything that other languages haven't got.
    Can you find smart pointers in other languages?
    Can you find generic programming to the extent that C++ offers (example, meta template programming) in other languages?
    Those are two examples. I'm sure there are more.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  2. #32
    Registered User whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    7,706
    You really don't need those things in other languages I think.

  3. #33
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,614
    Nevertheless, they are unique to C++...
    And I wouldn't say "don't need." They are handy. Indeed, it would simplify a lot of code! Why do you think RAII constructs have been proposed for Java?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  4. #34
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,743
    Quote Originally Posted by whiteflags
    Counting the STL (and I don't know why you would), that was literally the only thing unique to C++ that I learned in a class.
    Heh, at least you had the STL. When I was taught to program with C++ a decade ago, my teacher never introduced me to the standard containers from the STL. And yeah, like you, I never heard of RAII.

    Considering the teaching computer science, what I like about the C++ standard library is the stuff from <algorithm> and <numeric>, along with their complexity guarantees. Oh, and the standard containers too, but those are certainly quite common in programming languages as built-in constructs or part of standard libraries.

    Deterministic destruction/resource release through RAII is no longer unique to C++, though RAII in the form that C++ uses is unique, methinks.* Considering programming in practice, I like RAII as it is also applicable to resources other than memory. Furthermore, because RAII is a tool for automated memory management in C++, it certainly is more prominent in C++ than in programming languages that default to the use of garbage collection.

    * I'm thinking of C#'s using statement and Python's with statement which introduce new blocks of scope when RAII is to be used, either for correctness in the face of exceptions or because it is just required, compared to just creating the objects in C++. No big deal when the aim is for the RAII object to be destroyed at the end of a local scope (and prettier when you do want the object to be in a more local scope), but I imagine that this complicates matters if the aim is for deterministic destruction with the aid of smart pointers.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Page 3 of 3 FirstFirst 123
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 03-19-2009, 12:02 PM
  2. New to C and forum, need some help!
    By Icebreaker9 in forum C Programming
    Replies: 4
    Last Post: 02-10-2009, 08:45 PM
  3. General forum question - if in wrong forum...
    By ulillillia in forum A Brief History of Cprogramming.com
    Replies: 28
    Last Post: 05-14-2007, 05:00 AM
  4. no SDL forum ?
    By black in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 10-28-2002, 08:24 PM
  5. Replies: 7
    Last Post: 09-08-2002, 02:20 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21