Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Add comment to interop BOOL type - #5996

Merged
jkotas merged 1 commit into
dotnet:masterfrom
jkotas:BOOL-comment
Feb 10, 2016
Merged

jkotas merged 1 commit into
dotnet:masterfrom
jkotas:BOOL-comment

Conversation

@jkotas

@jkotas jkotas commented Feb 10, 2016

Copy link
Copy Markdown
Member

No description provided.

@JonHanna

Copy link
Copy Markdown
Contributor

If a struct had a single integer field, would it serve as well here while also allowing for equality overrides, or would it have overhead on construction?

@jkotas

jkotas commented Feb 10, 2016

Copy link
Copy Markdown
Member Author

It may work, but it may get into way as well. I do not think it is worth the complexity for the few cases where it is going to be ever used.

The default bool marshalling should take care of this problem in most cases. My intent was to make it as direct equivalent of Windows C++ BOOL as possible for cases where the default marshalling does not work. BTW: The Windows C++ BOOL is defined as int and has the same gotcha as well...

jkotas added a commit that referenced this pull request Feb 10, 2016
Add comment to interop BOOL type
@jkotas
jkotas merged commit 37464a8 into dotnet:master Feb 10, 2016
@jkotas
jkotas deleted the BOOL-comment branch March 20, 2016 04:06
@karelz karelz modified the milestone: 1.0.0-rtm Dec 3, 2016
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Add comment to interop BOOL type

Commit migrated from dotnet/corefx@37464a8
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants