Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get rid of global instances #24

Open
mschwartz opened this issue Dec 22, 2021 · 0 comments
Open

Get rid of global instances #24

mschwartz opened this issue Dec 22, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mschwartz
Copy link
Contributor

Console class should be static/namespace.

console.print should be Console::print.

Other classes might need to be instantiated via operator new.

Everywhere.

Not just console, but every class that has a global instance.

The reason is that you cannot control the order of instantiation.

@mschwartz mschwartz added the bug Something isn't working label Dec 22, 2021
@mschwartz mschwartz self-assigned this Dec 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant