Skip to content

Allow true/false as valid settings for individual bits #1

Open

Description

@RoUS

[Imported from RubyForge]

Since bits are often used to record Boolean flag status, it would make sense for 'true' and 'false' to be valid settings
for individual bits.

bs = BitString.new(0, 32)
bs[1] = true

iniValues = [true, false, false, true, false, true, true, true]
bs = BitString.new(iniValues, iniValues.length)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions