Correct way to create global resources #74
Samuka007
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Use this form:
Instead of this:
In the first case, the
dropcall can be called automatically. But in the second case, to correctly release the resources, things just get a lot more complicated due to the "easy" global variable.All reactions