Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why can I use paths with the compiling and loading Logtalk predicates?

0
Posted

Why can I use paths with the compiling and loading Logtalk predicates?

0

Currently, Logtalk requires that the arguments to the logtalk_compile/1-2 and logtalk_load/1-2 predicates be a source file name or a list of source file names. This is an unfortunate consequence of the lack of a portable operating system interface for Prolog compilers. There is simply no portable way of specifying file name paths which will work across all compatible Prolog compilers and operating systems. Nevertheless, file paths can be used indirectly through the definition of library paths and by using the notation () for compiling and loading source files. This notation improves portability when moving a Logtalk application to other Prolog compiler/operating-system as only the library paths would need to be updated in order for the compiling and loading calls to remain unchanged.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123