add qualified imports use_module library modules

This commit is contained in:
Mark Thom
2021-02-18 17:58:05 -07:00
parent 3831a371a4
commit eff892ccb8
4 changed files with 24 additions and 5 deletions

View File

@@ -428,7 +428,7 @@ use_module(Module, Exports, Evacuable) :-
instantiation_error(load/1)
; Module = library(Library) ->
( path_atom(Library, LibraryPath) ->
( '$load_compiled_library'(LibraryPath, Evacuable) -> %% TODO: What about Exports?
( '$load_compiled_library'(LibraryPath, Exports, Evacuable) ->
true
; '$load_library_as_stream'(LibraryPath, Stream, Path),
file_load(Stream, Path, Subevacuable),