expand goals in queries and queues

This commit is contained in:
Mark Thom
2019-02-01 23:36:51 -07:00
parent b6922e2a0d
commit c5fbff505b
9 changed files with 114 additions and 78 deletions

View File

@@ -320,7 +320,7 @@ impl fmt::Display for Level {
pub fn print(wam: &mut Machine, result: EvalSession) {
match result {
EvalSession::InitialQuerySuccess(alloc_locs, mut heap_locs) => {
if heap_locs.is_empty() {
if wam.or_stack_is_empty() && heap_locs.is_empty() {
println!("true.");
return;
}