Nov-30-2019, 12:03 PM
(Nov-30-2019, 07:58 AM)Gribouillis Wrote: I think strategy (b) is perfectly acceptable.Thanks for your kind confirmation.
Regarding the suggestion:
Quote:instead of passing explicitly the global object in the functions' signature, the solution is often to make the functions methods of a class and to make the global object a member of the class, or an instance, so that the pointer to this object is passed implicitly through the self argument.
Would setting up a class be the preferred option even if it were to be called just for a single instance?
A.D.Tejpal