M
Martijn van Buul
* Bo Persson:
Malloc is debateable, but not knowing about strcpy implies not knowing
about char * strings, which implies not knowing exactly why std::string
sucks so bad.
Oh, and not knowing about strcpy is not knowing why you should be using
strncpy to begin with.
Because it implies not knowing the difference between pointers and
whatever they point to.
Because they don't do what you want.
More than <<'ing an iostream *EVER* give you.
That's nonsense, as this applies to C++ just as bad. If you never had
to pass an object by means of passing a pointer, you never did any programming
besides
std::cout << "hello world" << std::endl
References are *NOT* pointers, pointers are *NOT* bodged references.
This is the *ONLY* one of your arguments that's not severely flawed or plain
wrong.
Because they're not the same.
In theory yes, but in practice there are large parts of the C subset
that isn't very useful in C++. Why bother to learn about things like:
malloc and strcpy
Malloc is debateable, but not knowing about strcpy implies not knowing
about char * strings, which implies not knowing exactly why std::string
sucks so bad.
Oh, and not knowing about strcpy is not knowing why you should be using
strncpy to begin with.
why s1 == s2 is different from strcmp(s1, s2)
Because it implies not knowing the difference between pointers and
whatever they point to.
why you have library functions named abs, fabs, labs, cabs, etc - why
not just overload abs?
Because they don't do what you want.
what does printf("/!%%!%¤#") really mean (if anything)
More than <<'ing an iostream *EVER* give you.
how to use an address passed by value to simulate a pass by reference
That's nonsense, as this applies to C++ just as bad. If you never had
to pass an object by means of passing a pointer, you never did any programming
besides
std::cout << "hello world" << std::endl
References are *NOT* pointers, pointers are *NOT* bodged references.
how to use name prefixes to simulate namespaces
This is the *ONLY* one of your arguments that's not severely flawed or plain
wrong.
how to use variadic functions instead of overloads with different
number of parameters
Because they're not the same.