Skip to content

BOOL.Value should be typed as int #186

Closed

Description

Perhaps unbelievably, it has come to my attention that some BOOL types carry more than just a binary zero/non-zero state. We should expose this in CsWin32 rather than hide it by only exposing it as bool.

Activity

  1. jnm2 commented on Mar 10, 2021

    @jnm2
    Contributor

    Side note in case it's interesting :D C#'s bool carries more than just a binary state, too. The fact that it's actually eight bits can be observed this way: dotnet/csharplang#544 (comment)
    Or this way: dotnet/csharplang#544 (comment)

  2. AArnott commented on Mar 11, 2021

    @AArnott
    MemberAuthor

    Funny. Well, BOOL is 4 bytes, so bool just doesn't quite cut it, theoretically.

  3. added 3 commits that reference this issue on Mar 16, 2021
    8f3aa91
    eb0cc23
    a3e6420
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions