Skip to main content
zadane's user avatar
zadane's user avatar
zadane's user avatar
zadane
  • Member for 10 years, 9 months
  • Last seen more than a month ago
revised
Should I pass array or pointer?
added 96 characters in body
Loading…
asked
Loading…
comment
A module which is used by most other modules
Would it be preferably to declare member variable in each module in its constructor using this approach or get the instance like this in each member function? Chances are the modules is gonna log in many functions not just one. Alternatively why don't just declare static member functions as well like Logger::Write("logging on the fly!") that way we don't even need to access the object?
awarded
awarded
awarded
asked
Loading…
1 2
3