make chars callable (#713)

This commit is contained in:
Mark Thom
2021-03-17 19:50:41 -06:00
parent 6c23d7aec8
commit 10af206024
2 changed files with 13 additions and 1 deletions

View File

@@ -2775,6 +2775,17 @@ impl MachineState {
unreachable!()
}
}
Addr::Char(c) => {
return self.module_lookup(
indices,
call_policy,
(clause_name!(c.to_string(), self.atom_tbl), narity),
module_name,
true,
current_input_stream,
current_output_stream,
);
}
addr => {
let stub = MachineError::functor_stub(clause_name!("(:)"), 2);