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

Issue loading numberlist library #8

Closed
mlliarm opened this issue Nov 11, 2020 · 3 comments
Closed

Issue loading numberlist library #8

mlliarm opened this issue Nov 11, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@mlliarm
Copy link
Owner

mlliarm commented Nov 11, 2020

So I've changed my loader to load the numberlist library. But when I load the loader, I get the following error:

ERROR: /home/milia/Documents/dev/logtalk/ia/.lgt_tmp/loader_3366262_lgt.pl:1:
	source_sink `library(numberlist)' does not exist
Warning: /home/milia/Documents/dev/logtalk/ia/.lgt_tmp/loader_3366262_lgt.pl:1:
	Goal (directive) failed: user:use_module(library(numberlist),[])

I must have done something wrong.

Here are the contents of the loader.lgt:

:- use_module(library(numberlist), []).

:- initialization(
	logtalk_load([
		interval_arithmeticp,
		interval_arithmetic
	], [
		optimize(on)
	])
).
@mlliarm mlliarm added the bug Something isn't working label Nov 11, 2020
mlliarm added a commit that referenced this issue Nov 11, 2020
mlliarm added a commit that referenced this issue Nov 11, 2020
@pmoura pmoura closed this as completed in dd09ea8 Nov 11, 2020
@pmoura
Copy link
Collaborator

pmoura commented Nov 11, 2020

Fixed. Note that Logtalk libraries are not module libraries; you cannot use an use_module/1 directive to load them. Also (see the commit that I just pushed to fix this issue), the numberlistp and numberlist entities are part of the types library.

@mlliarm
Copy link
Owner Author

mlliarm commented Nov 11, 2020

Thanks ! Noted. I'd noticed that numberlist, numberlistp were included in the library types, but wasn't sure how to load it. Now I know :).

@pmoura
Copy link
Collaborator

pmoura commented Nov 11, 2020

https://logtalk.org/manuals/libraries/index.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants