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

Unresolved "Close" function for RAIIFree #264

Closed
rumbu13 opened this issue Feb 19, 2021 · 0 comments
Closed

Unresolved "Close" function for RAIIFree #264

rumbu13 opened this issue Feb 19, 2021 · 0 comments
Labels
namespaces Feedback on namespace names or organization

Comments

@rumbu13
Copy link

rumbu13 commented Feb 19, 2021

If the "Close" function is not in the current namespace, we must search all namespaces for it. Example: EventLogHandle is defined in Windows.Win32.WindowsProgramming, but CloseEventLog is defined in Windows.Win32.WindowsServices

RAIIFree("CloseEventLog")]
struct EventLogHandle...

Option one: use qualified names:

RAIIFree("Windows.Win32.WindowsServices.CloseEventLog")
struct EventLogHandle...

Option 2: keep strongly typed handles and "Close" functions in the same namespace.

Other examples: EventSourceHandle, HeapHandle, HCOLORSPACE, HCURSOR, HICON

@mikebattista mikebattista added the namespaces Feedback on namespace names or organization label Feb 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
namespaces Feedback on namespace names or organization
Projects
None yet
Development

No branches or pull requests

2 participants