The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Another C++ question by oot2004-12-06 15:37:58
  mystr.c_str() (n/t) by Liava2004-12-06 15:39:00
    Hmm by Liava2004-12-06 15:39:41
      Gotta be careful... by williamashbless2004-12-06 15:45:32
        Thank you by oot2004-12-06 15:47:03
          You using fstreams, I take it? (n/t) by williamashbless2004-12-06 15:48:04
            One of the things I hate about the C++ library: by nix 2004-12-06 15:54:43
It's total lack of internal consistency.

It uses C-style strings in some places, C++ string objects in others. For some, there are overfloaded versions available, but for others (like constructors to fstream objects), the user has to correct manually.

Another problem is the emphasis that OO people put on inheritance and polymorphism - and you can't put polymorphic types into STL containers and expect them to work when you pull them out. So, you have to store pointers to objects of polymorphic types and do your memory management manually.

And there are no hash tables in the STL. What were the designers thinking?

At least they did get some things right as compared to Java; destructors DO run at predictable times, allowing you to actually use them for something.
[ Reply ]
              Yeah, there's some doozies. (n/t) by williamashbless2004-12-06 16:06:19

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)