(Swi) current_predicate/1 problem
- From: "Mauro DiNuzzo" <picorna@xxxxxxxxx>
- Date: Sat, 17 Jun 2006 10:07:11 +0200
Hi all!
I dont know exactly, but the following seems a bug.
Suppose having:
?- assert(my:p(a)).
yes
?- assert('$my':p(a)).
yes
Now the following succeeds:
?- current_predicate(my:p/1).
yes
While the following fails:
?- current_predicate('$my':p/1).
No
It is normal that modules starting with '$' are obscured?
And, if so, why only user-defined modules do this? In fact that works for
builtin modules starting with '$'.
Could you give me some insight?
Thank you very much.
Cheers - /\/\
.
- Follow-Ups:
- Re: (Swi) current_predicate/1 problem
- From: Mauro DiNuzzo
- Re: (Swi) current_predicate/1 problem
- Prev by Date: comp.lang.prolog Frequently Asked Questions
- Next by Date: Re: (Swi) current_predicate/1 problem
- Previous by thread: [maybe OT] Sudoku: solving method or simply backtrack?
- Next by thread: Re: (Swi) current_predicate/1 problem
- Index(es):
Relevant Pages
|