lkml.org 
[lkml]   [1999]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: C++ in kernel (was Re: exception in a device driver)
Date
> to prevent the self pointer from being passed, make it a non-member function
> or make it a static member function, and stop complaining...or depending
> on what foofunc is notionally supposed to do, leave it non-static so the
> A writers of child classes don't have to fix it for you.

So to write optimal C++ I have to know at least as much as the internal
structure of the code than for C. Thats the point I was trying to get across
C++ is less efficient because the compiler cannot perform some optimisations it
can in C without help from the code writer.

Its exactly those kind of things that make C++ uninteresting for serious
performance sensitive and large projects. Poor language design - not poor
concepts - Linux is object oriented - but in C for 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/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.901 / U:0.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site