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

B-Prolog 8.1 sub_atom/5 bug #9

Open
pmoura opened this issue Apr 21, 2014 · 0 comments
Open

B-Prolog 8.1 sub_atom/5 bug #9

pmoura opened this issue Apr 21, 2014 · 0 comments

Comments

@pmoura
Copy link
Member

pmoura commented Apr 21, 2014

The B-Prolog 8.1 implementation of the standard sub_atom/5 predicate can return an integer instead a (sub-)atom. For example:

| ?- sub_atom('foo#0', 4, _, 0, Atom).     
Atom = 0
yes
| ?- sub_atom('foo#0', 4, _, 0, Atom), atom(Atom).
no

This bug is exposed by Logtalk in some of the unit tests for the built-in logtalk object and in errors when converting internal entity prefixes back to entity names.

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

No branches or pull requests

1 participant