| ▲ | repelsteeltje 2 days ago | |||||||||||||||||||||||||||||||
That sounds like your answer is: "Yes, global variables". That may be a perfectly good solution in many embedded environments, but in most other context's global variables are considered bad design or very limiting and impractical. | ||||||||||||||||||||||||||||||||
| ▲ | 2 days ago | parent | next [-] | |||||||||||||||||||||||||||||||
| [deleted] | ||||||||||||||||||||||||||||||||
| ▲ | TuxSH 2 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||
> global variables are considered bad design Global mutable variables, and they usually tend to be grouped into singletons (solving initialization issues, and fewer people bat an eye) | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
| ▲ | izacus 2 days ago | parent | prev [-] | |||||||||||||||||||||||||||||||
They're considered impractical mostly because language tooling doesn't support them appropriately. | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||