Messages in this thread | | | From | (Alan Cox) | Subject | Re: C++ in kernel (was Re: exception in a device driver) | Date | Sat, 9 Jan 1999 20:50:18 +0000 (GMT) |
| |
> The rest is FUD: it's trivial to "figure out" when you are passing a > "self" pointer argument around: only non-static member functions have > them.
On the contrary
foo1.C
blah->foofunc();
foo2.C
blahobject::foofunc() { printf("Hi"); }
a C++ compiler ends up passing "this" needlessly because it can't tell that foofunc of object blahobject need not know who it is.
Thats only one example.
Alan
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |