Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

Removed config dart-bool and target Bool / bool #391

Merged
merged 1 commit into from
May 30, 2022

Conversation

mannprerak2
Copy link
Contributor

Closes dart-lang/native#310

Booleans are now always generated with bool and ffi.Bool as it's Dart and C Type respectively.

I am not sure if this is worth upgrading the version to 6.0.0, but it's technically a breaking change for people using dart-bool config.

Here are some options I could think of -

  • Bump version to 6.0.0
  • Maybe wait for more things and do this PR before actually going for 6.0.0
  • Bump version to 5.1.0 and throw an error if dart-bool is passed as false.

It's possible we could support this config up until 6.0.0, but it required making quite a few code changes which I feel aren't really worth adding just to be removed later.

…ool`

and `ffi.Bool` as it's Dart and C Type respectively.
@mannprerak2 mannprerak2 changed the title Removed config dart-bool Removed config dart-bool and target Bool / bool May 28, 2022
@mannprerak2 mannprerak2 requested a review from dcharkes May 28, 2022 20:33
@dcharkes
Copy link
Contributor

Bump version to 6.0.0

I think that's fine. There's no reason to artificially try to keep the major version number low. And this way we keep the contract that we don't break people if they don't update the major version. 👍

Copy link
Contributor

@dcharkes dcharkes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! Thanks @mannprerak2 🚀

@dcharkes dcharkes merged commit 8ce661e into dart-archive:master May 30, 2022
@mannprerak2 mannprerak2 deleted the use_dart_bool_from_ffi branch May 30, 2022 07:10
@mannprerak2 mannprerak2 mentioned this pull request Jun 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Target Bool / bool instead of wrapping as integers
2 participants