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

MOLD produces invalid bitset #3950

giesse opened this issue Jul 27, 2019 · 2 comments


Copy link

commented Jul 27, 2019

The output of mold for "complemented" bitsets cannot be used to re-create the bitset.

>> mold charset "A"
== "make bitset! #{000000000000000040}"
>> do mold charset "A"
== make bitset! #{000000000000000040}

>> mold complement charset "A"
== "make bitset! [not #{000000000000000040}]"
>> do mold complement charset "A"
*** Internal Error: reserved for future use (or not yet implemented)
*** Where: make
*** Stack:  

>> about
Red 0.6.4 for Linux built 27-Jul-2019/12:09:49-10:00

(current master branch)

@dockimbel dockimbel self-assigned this Jul 28, 2019
@dockimbel dockimbel added this to the 0.6.5 milestone Jul 28, 2019

This comment has been minimized.

Copy link

commented Jul 28, 2019

This has nothing to do with mold. Try make bitset! [not #{000000000000000040}]. And even make bitset! [#{000000000000000040}] is not implemented. See the spec document section 5.3.5 for what is allowed inside the spec block.


This comment has been minimized.

Copy link
Contributor Author

commented Jul 28, 2019

@meijeru if [not #{...}] is not allowed, then clearly mold should not generate such output. If it is supposed to be allowed, then this is a bug in make bitset! (more likely).

Still, the statement is true that the output of mold is not usable right now (which is my problem, since I'm saving code to a file and then trying to load it back).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can’t perform that action at this time.