T
Tony
Is there any value to pursuing program designs that mimimize
the mainline call stack? For example, within main() I could
code up something like:
while(GetMsg(m))
DispatchMsg(m);
instead of doing Program.Run() from main() or even worse
calling Run() from the Program constructor.
Call Stack example 1:
main()
GetMsg()/DispatchMsg()
Call Stack example 2:
main()
Program:
rogram()
Program::Run()
GetMsg()/DispatchMsg()
Tony
the mainline call stack? For example, within main() I could
code up something like:
while(GetMsg(m))
DispatchMsg(m);
instead of doing Program.Run() from main() or even worse
calling Run() from the Program constructor.
Call Stack example 1:
main()
GetMsg()/DispatchMsg()
Call Stack example 2:
main()
Program:
Program::Run()
GetMsg()/DispatchMsg()
Tony