inline command
quote:Original post by Anonymous Poster*Shrug* I was writing that for conciseness because the whole topic is whether inline has valid uses besides optimization, and we had already tackled this issue.
Oh that's what you're saying, is it?
Hmmm...
Antareus: Thinking about it, I have probably used the word "lazyness" too broadly. I should have said "convenience", I think.
I was responding to Lektrix' claim that inline improves abstraction and encapsulation, but I got carried away. I still feel that this is not true, but you're right in that the inline keyword probably has legitimate uses for "convenience".
Cédric
[edited by - Cedric on September 4, 2003 3:47:22 PM]
quote:Original post by Cedric
Shrug* I was writing that for conciseness because the whole topic is whether inline has valid uses besides optimization, and we had already tackled this issue.
No it wasn''t.
CProgrammer asked when he/she should use the keyword inline.
The answer is: It doesn''t matter. If you think something is a good candidate than try it. If you declare it inline, a good compiler will determine if it should be or not, and make the right choice. Worst case scenario, you wasted six keystrokes.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement