Skip to content

[SUGGESTION] bitfields support #1395

Open
@KaruroChori

Description

@KaruroChori

Quick question: is there any plan to support bitfields?
I know that they don't get much love as a feature in the broader community, but there are applications where they are the only sane option.
Alternatives which have been considered are:

  • To just write normal C++ structs/classes alongside Cpp2.
  • To write custom getters/setters handling the layout.

If nothing I guess the reflection/codegen feature of Cpp2 could even improve upon bitfields as it was done for enums.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions