Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

whats wrong with c++?

Name: Anonymous 2012-06-14 4:55

it has namespaces, better standard libraries, a plethora of modern conveniences, and all of c's functionality.

if you don't like objects don't use them

if you want to feel like a programming badass and do everything low level then learn assembly

Name: Anonymous 2012-06-19 17:57

this: http://echochamber.me/viewtopic.php?f=11&t=14661&start=4120#p3034834

how could it get more wrong than that?

Name: Anonymous 2012-06-19 19:03

>>80
Even the best programmers make mistakes, and C gives you more rope to hang yourself with.

Name: Anonymous 2012-06-19 19:19

signal(SIGSEGV, SIG_IGN);

Stop worrying about segfaults.

Name: Anonymous 2012-06-19 20:28

C gives you more rope to hang yourself with.
#include <cstdlib>
#include <iostream>

void *f(bool x) {
  if(x) {
    OHSHIT:
    std::cout << "At least C doesn't give you rope like this..." << std::endl;
    exit(0);
  } else {
    void *pointy = &&OHSHIT;
    return pointy;
  }
}

void g(void *WHAT) {
  goto *WHAT;
  STUFF:
  std::cout << &&STUFF << std::endl;
}

int main() {
    g(f(false));
    return 0;
}

Name: Anonymous 2012-06-19 21:21

The worst part about C++ are the programmers. C++ as a language is fine, but it takes a while, probabbly longer than C to get a good grasp on what you are doing, and what the best way to do things is. Too many people try to do "C in C++" for example.

If you are using C++ then do C++. If you are doing C then do C.

Name: Anonymous 2012-06-19 22:01

>>84
On my system that only executes STUFF.

Name: Anonymous 2012-06-19 22:26

>>88
Damnit!

Name: Anonymous 2012-06-19 22:26

>>87
You missed the dubs dude!

Name: Anonymous 2012-06-19 22:31

>>84
Shitty example. Why would anyone want to do this to begin with?

Name: Anonymous 2012-06-19 23:09

>>89
A sane person wouldn't. That's why allowing it makes Sepples inferior to C.

>>86
Try this one:
#include <cstdlib>
#include <iostream>

void *f(bool x) {
  if(x) {
    OHSHIT:
    std::cout << "At least C doesn't give you rope like this..." << std::endl;
    exit(0);
  } else {
    void *pointy = &&OHSHIT;
    return pointy;
  }
}

void g(void *WHAT) {
  goto *WHAT;
  STUFF:
  if(&&STUFF) std::cout << "";
}

int main() {
    g(f(false));
    return 0;
}

Name: Anonymous 2012-06-20 1:08

>>90
The problem is C does allow it. How do you think Sepples was created?

Name: Anonymous 2012-06-20 1:19

>>91
Assembly.

Name: Anonymous 2012-06-20 1:50

>>90
Non-standard

Name: Cudder !MhMRSATORI!FBeUS42x4uM+kgp 2012-06-20 5:26

>>84,90
This is neither standard C nor C++.

Name: Anonymous 2012-06-20 5:56

Why do people use the word "object" to refer to classes?

The way I see it, the below definition creates an object.
int i;
Is it wrong to call "i" an object!??!!?!?!

Name: Anonymous 2012-06-20 5:57

>>95

it's a primitive

Name: Anonymous 2012-06-20 5:59

>>95
OO is all about self contained modules known as classes that pass messages to other classes. An instance of the class is known as the object.

Name: Anonymous 2012-06-20 6:53

>>93-94
All non-trivial Sepples code is non-standard.

Name: Anonymous 2012-06-20 7:31

>>98
All trivial Sepples code is non-standard.

Name: Anonymous 2012-06-20 7:38

>>99
nice dubs check mine too

Name: Anonymous 2012-06-20 13:41

I've heard that C++ produces much code bloat, creates hard to read Template compile error messages, and makes you use dumb shit like const

Name: Anonymous 2012-06-20 13:59

>>101
don't even get me started on template errors, i swear to god its the most unreadable shit ever created

Name: Anonymous 2012-06-20 14:09

Just admit it. C++ is too hard. There's no point in learning such language.

I could complete at least ten projects with C during the time it would take me to learn C++ basics. Simple is better.

Name: Anonymous 2012-06-20 16:07

>>103
We don't need programs written in C anymore.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List