logtalk_load(File, Flags) logtalk_load(Files, Flags)
Compiles to disk and then loads to memory a source file or a list of source files using a list of flag values. The Logtalk file name extension (by default, .lgt
) must be omitted. Note that the first argument is a source file name or a list of source file names, not file paths. In other words, the files must exist in the current working directory, unless library notation is used.
For a description of the available compiler flags, please consult the User Manual.
Note that only the errors related to problems in the predicate arguments are listed below. Other exceptions may be thrown by the compiler if any of the loaded entities contain syntax errors.
logtalk_load(@source_file_names, @list)
instantiation_error
instantiation_error
type_error(source_file_name, File)
type_error(library_source_file_name, Entity)
existence_error(file, File)
existence_error(library, Library)
instantiation_error
type_error(list, Flags)
type_error(compiler_flag, Flag)
| ?- logtalk_load(list, []). | ?- logtalk_load(types(tree), [xmlspec(xsd)]). | ?- logtalk_load([listp, list], [xml(off), plredf(warning)]).