This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: std::pow implementation
Steven Bosscher <s.bosscher@student.tudelft.nl> writes:
| Op wo 30-07-2003, om 08:38 schreef Gabriel Dos Reis:
| > | > But, why don't you trust the programmer? Why do you insist that you
| > | > know better than the programmer?
| > |
| > | Because (1) inline is implicit in C++,
| >
| > No, that is *your* invention. Inline is NOT implicit. That is just
| > an invention of people like you who prefer to ignore the purpose of
| > "inline". Please, do give inline its original and obvious meaning.
|
| Hmm I really don't follow you. If "inline" is not implicit, would that
| mean that for the (broken) example earlier in this thread:
|
| class bla
| {
| public:
| foo() {i=1;}
| private:
| int i;
| }
|
| a use of foo would _not_ be inlined because the user hasn't marked it
| inline???
The point you're missing is that only the *keyword* is implicit. Not
the fact that the function is *actually* declared inline. In really,
when inline was originally introduced in C++, the above syntax was the
only one available. See my answer to Alexandre who raised the same
syntactical issue.
There is more than syntax about it.
-- Gaby