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

arguments.md: to_number() bin+hex examples don't work on latest release of Souffle #148

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jdbillings
Copy link

#140 was merged in November, to reflect the changes made to souffle in 030e111b (PR #2439 in that project). However, that commit missed the cut for souffle 2.4.1 by about one day. Moreover, the Ubuntu PPA described in the docs has 2.4 as its latest release. Right now, these two binary+hex examples only work if you build souffle from source, containing the 030e111b changeset.

On Souffle 2.4, you'll get 0 as the output of:

tonumber(n) :- n=to_number("0xff").
tonumber(n) :- n=to_number("0b111").

At the end of the day, this is a pretty minor nitpick, but I think the docs should note if some example doesn't work on the most recent release. I imagine many users trying Souffle out for the first time are probably installing from rpm/deb, not from source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant