Skip to content

Commit abf1b9e

Browse files
committed
metta_loader.pl: set compiler_context to builtin while loading corelib for better context isolation
1 parent cd84a5c commit abf1b9e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

prolog/metta_lang/metta_loader.pl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3127,8 +3127,9 @@
31273127
debug(lsp(main), "~q", [start_really_use_corelib_file(Dir, File)]),
31283128
locally(nb_setval(may_use_fast_buffer, t),
31293129
locally(nb_setval(debug_context, stdlib),
3130+
locally(nb_setval(compiler_context, builtin),
31303131
locally(nb_setval(suspend_answers, true),
3131-
without_output(include_metta_directory_file('&corelib', Dir, Filename))))),
3132+
without_output(include_metta_directory_file('&corelib', Dir, Filename)))))),
31323133
asserta(really_using_corelib_file),
31333134
debug(lsp(main), "~q", [end_really_use_corelib_file(Dir, File)]))).
31343135

0 commit comments

Comments
 (0)