Prolog DCG set_prolog_flag double_quotes source code directive location matters; documentation?
I learned the hard way that with SWI-Prolog the location for the Prolog directive set_prolog_flag matters in a source code file. The only documentation I found of value about loading source code files with directives was in Loading Prolog source files A directive is an instruction to the compiler. Directives are used to set (predicate) properties (see section 4.15), set flags (see set_prolog_flag/2) and load files (this section). Directives are terms of the form :- <term>. Is there documentation for SWI-Prolog that covers loading of source code that notes if a directive applies to the entire