Using "prevent execution of method" flags
- by tpaksu
First of all I want to point out my concern with some pseudocode (I think you'll understand better)
Assume you have a global debug flag, or class variable named "debug",
class a :
var debug = FALSE
and you use it to enable debug methods. There are two types of usage it as I know:
first in a method :
method a :
if debug then call…