Some of you requested a simple solution for using project-specific settings without being forced to edit the back-end Prolog compiler config files. The current Logtalk development release (r4744) adds experimental support for defining Logtalk startup directory specific settings. The definition of per project settings is straightforward. Simply define a "settings.pl" file in the project directory containing clauses for the logtalk_load/2 predicate. For example:
Code: Select all
logtalk_flag(altdirs, on). logtalk_flag(smart_compilation, on). logtalk_flag(xmldocs, off). logtalk_flag(threads, off). logtalk_flag(report, warnings). logtalk_flag(startup_message, flags(compact)).