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

Const Const is the same as Const Const Const #721

Open
Dark-Ai-py opened this issue Jul 27, 2024 · 4 comments
Open

Const Const is the same as Const Const Const #721

Dark-Ai-py opened this issue Jul 27, 2024 · 4 comments

Comments

@Dark-Ai-py
Copy link

The title is self explanatory.

@guigui0246
Copy link

No because const const is only at the declaration level,
const const g_... is only at the program level,
while const const const is at a universal level (all programs, all users)

@Dark-Ai-py
Copy link
Author

then could a const const const variable be deleted with the delete keyword

@guigui0246
Copy link

Yes if there is more ! than when it was created

@guigui0246
Copy link

const const const max_threads = 1824 !!!
const const g_value = 3 !!!
// Valid
print max_threads)
delete max_threads !!!!
// Invalid:
// print g_value)
// delete g_value !!!!

Are two programs you can run in order and that would work correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants