Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It should be possible to make bitset! from another bitset! (no error) #2420

Closed
Oldes opened this issue Jun 7, 2020 · 0 comments
Closed

It should be possible to make bitset! from another bitset! (no error) #2420

Oldes opened this issue Jun 7, 2020 · 0 comments
Labels
Datatype: bitset! Red compatibility Issues and changes required for compatibility with Red language Test.written Type.wish

Comments

@Oldes
Copy link
Owner

Oldes commented Jun 7, 2020

Currently:

>> charset charset "a"
** Script error: charset does not allow bitset! for its chars argument

>> make bitset! charset #"a"
** Script error: invalid argument: make bitset! #{00000000000000000000000040}
** Where: make
** Near: make bitset! charset #"a"

Above should just make a copy as in Red:

>> charset charset "a"
== make bitset! #{00000000000000000000000040}
>> b1: charset "" b2: make bitset! b1
== make bitset! #{00}
>> b2/1: true
== true
>> b2
== make bitset! #{40}
>> b1
== make bitset! #{00}
@Oldes Oldes added Type.wish Red compatibility Issues and changes required for compatibility with Red language Datatype: bitset! labels Jun 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Datatype: bitset! Red compatibility Issues and changes required for compatibility with Red language Test.written Type.wish
Projects
None yet
Development

No branches or pull requests

1 participant