Virtuals are minor problem
Virtuals are minor problem
Posted Nov 14, 2008 18:00 UTC (Fri) by robert_s (subscriber, #42402)In reply to: Virtuals are minor problem by khim
Parent article: Things that go Clang in the night: LLVM 2.4 released (ars technica)
"A=B can mean network/disk access and more!"
In fact this is nonsense. C++ doesn't allow overloading of builtin types' operators. So you're not able to, i.e. redefine operator+ ( int , int ). So existing uses of operators will all work. Without operator overloads (in C), you wouldn't be able to do the equivalent at all. The way you'd have to do it in C would be:
A a;
B b;
C c;
c = addAandB ( a , b );
...and that function call could do anything.
