I’m a “NewBe” in Haiku programming (but not in C++) and looking for a little piece code to take my little part to this great projekt.
I’ve looked into the SVN-Repository and have seen that nobody uses the “this” pointer for class members and/or member functions.
I know that it is not needed by c++. By using the "this" keyword coders can see at one glance if the variable / function a direct member or an locale variable and rexpectively an external variable.
Glad to hear some type of convention is being used to make the code a little easier to read. Using this does make code easier to understand, but 4 charaacters in front of your variables starts to look ugly and can start having the reverse effect. I like the _classVariable convention, but I guess fClassVariable works too!
in fact it’s not ‘fClassVariable’ but just fVariable. Every ‘fXxxx’ variable namespace is reserved to class variable members. For example, we’ve many fEnable[d] variable members in many classes…
PS: don’t ask me why ‘f’ and not any other letter, I dunno myself…