C
Christopher Benson-Manica
Arthur J. O'Dwyer said:Probably Chris meant to insert an
else { p = tmp; }
three lines up, instead.
Why, yes, yes I did ;( Thanks!
Arthur J. O'Dwyer said:Probably Chris meant to insert an
else { p = tmp; }
three lines up, instead.
Mark Gordon said:I don't find memmove any more obscure than memcpy, if anything I find it
less obscure because it gives defined results then memcpy invokes UB and
when memcpy does not invoke UB memmove behaves the same.
E. Robert Tisdale said:This is bad advice if you need to compile with a C++ compiler:
E. Robert Tisdale said:I don't want to discuss C++.
But *real* C programmers can't afford to ignore C++.
They must write C code which can be compiled by C++ compilers
as well as by C compilers.
sez you. There are many "*real* C programmers" on this NG that
sez otherwise. Unless you have a unique definition for "real" (or
"C programmer").
Dave said:The ones who aren't complex, of course.
It's the simple C programmers that can't ignore C++.
In said:This is bad advice if you need to compile with a C++ compiler:
_____________________In said:But *real* C programmers can't afford to ignore C++.
They must write C code which can be compiled by C++ compilers
as well as by C compilers.
I don't want to discuss C++.
But *real* C programmers can't afford to ignore C++.
They must write C code which can be compiled by C++ compilers
as well as by C compilers.
I think you mean irrational C programmers.
On the other hand, I imagine memmove requires some amount of extra
processing time in exchange for defined behavior...
Dave said:That works too, but it doesn't follow quite as nicely from "not complex".
(Unless you can find another way to get from "real" to "irrational"?)
I just thought real numbers, complex numbers and irrational numbers.
Maybe that is what you thought as well
E. Robert Tisdale said:But *real* C programmers can't afford to ignore C++.
They must write C code which can be compiled by C++ compilers
as well as by C compilers.
What about "surreal" ? Doesn't involve heavy math and triple indirection.Dave Vandervies said:[about "real C programmers"]
I just thought real numbers, complex numbers and irrational numbers.
Maybe that is what you thought as well
Well, almost. I thought real and complex numbers (the complex numbers
are generally treated as the ones that aren't real, even though they
contain the reals as a subset), and then went from complex to simple
(to undo the "opposite meaning", y'see).
The problem with using irrational there is that irrational numbers
aren't generally considered as "not <something that's not real>", so
using that distinction didn't leave the same opportunity to get in some
mathematically rigorous wordplay at Tisdale's expense.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.