Skip to content

Commit

Permalink
towards #206
Browse files Browse the repository at this point in the history
  • Loading branch information
TeamSPoon committed Dec 17, 2024
1 parent d232fac commit a6b43d6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion prolog/metta_lang/metta_python.pl
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
is_rust_space(GSpace),!.
is_not_prolog_space(GSpace):-
% Check if the space is neither an asserted space nor an nb space.
\+ is_asserted_space(GSpace),\+ is_nb_space(GSpace),!.
\+ is_asserted_space(GSpace), \+ is_nb_space(GSpace),!.

%! with_safe_argv(:Goal) is det.
%
Expand Down
5 changes: 3 additions & 2 deletions prolog/metta_lang/metta_space.pl
Original file line number Diff line number Diff line change
Expand Up @@ -715,12 +715,13 @@
% ?- is_asserted_space('&self').
% true.
%
is_asserted_space(X) :-
was_asserted_space(X).
is_asserted_space(X) :- was_asserted_space(X).
/*
is_asserted_space(X) :-
\+ is_as_nb_space(X),
\+ py_named_space(X),
!.
*/

%! is_python_space_not_prolog(+Space) is nondet.
%
Expand Down
1 change: 1 addition & 0 deletions prolog/metta_lang/metta_types.pl
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@
% Use no_repeats to ensure uniqueness in space type methods.
no_repeats(Test, space_type_method(Test, _, _)),
% Call the test to determine the space type.
is_not_prolog_space \== Test,
call(Test, Space), !.

%! is_state_type(+State, -Type) is nondet.
Expand Down

0 comments on commit a6b43d6

Please sign in to comment.