Hi folks,

Here's something I've been running into occasionally:

class Foo
{
  int whee;
public:
  Foo() : whee(10) {};
}

I just spent far too long debugging a problem that should have taken 2 minutes, because I didn't realise 'whee' was being set in the class declaration.

Personally, I'm a fan of "no program logic in the .h files at all", but I'm not sure if this topic has been discussed at all.

Questions/commits/suggestions?

-Gary.

_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help   : https://help.launchpad.net/ListHelp

Reply via email to