How to obtain the name of calling module for the predicate?

From: Екатерина Кутовая <>
Date: Mon 20 Mar 2000 10:39:15 AM GMT
Message-Id: <>
  I wrote the arity compatibility module where 'ifthenelse' and 'ifthen'
predicates are defined. They have Goals as their arguments and need to
call them. As it is unknown from  what module that goal is, the error is
generated. How I can solve this problem? THANK YOU!

[ Moderator's note:

:- tool(ifthenelse/3, ifthenelse/4).
ifthenelse(If, Then, Else, Module) :-
	(If -> Then ; Else) @ Module.

Received on Mon Mar 20 11:30:52 2000

This archive was generated by hypermail 2.1.8 : Wed 16 Nov 2005 06:07:05 PM GMT GMT