Andre Poenitz <[EMAIL PROTECTED]> writes: | Well, I don't like | | - string screenLabel() const; | + virtual string const screenLabel() const; | | but I know Lars likes it. So maybe the point is already mood.
I am not sure what part of it you think I like.... I am ambivalent about the 'virtual', but leans towards this being mentioned in a comment instead. (I think doxygen does that automatically? That would also solve your "lookup-base-func" problem.) As to the 'const': Yes I like that. Couple of reasons: a. makes it impossible to do strange/unsafe things with the temporary returned. b. makes it more similar to a return type "string const &", and in combination with a. makes a transition to this type later (if wanted) easier. -- Lgb