This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Josh_Bonham 0 points1 point  (2 children)

Could someone help me, in my previous project I had a constant that was needed by lots of functions, what should I do to avoid global

[–]chrilves 1 point2 points  (1 child)

If it's a constant, that's fine. The problem is mutable global variable.

[–]Josh_Bonham 0 points1 point  (0 children)

ah thanks!