Re: Ambiguous import of maplist / 3 from [eclipse_language, apply_macros]

From: Joachim Schimpf <j.schimpf_at_icparc.ic.ac.uk>
Date: Fri 15 Mar 2002 02:33:40 PM GMT
Message-ID: <3C920644.50AD3AD5@icparc.ic.ac.uk>
Erick Alphonse wrote:
> 
> [eclipse 4]: maplist(=,[1,2],L).
> Ambiguous import of maplist / 3 from [eclipse_language, apply_macros] in
> module eclipse

See the User Manual, chapter:
Module Systems/Advanced Topics/Solving Name Conflicts.
You either use import...from to resolve the ambiguity,
or you use a qualified call module:predicate to
specify which version you want:


[eclipse 1]: lib(apply_macros).
[eclipse 2]: import maplist/3 from apply_macros.
[eclipse 3]: maplist(=,[1,2],L).
*** Creating auxiliary predicate 'maplist(=)' / 2
L = [1, 2]
Yes (0.00s cpu)

or

[eclipse 1]: lib(apply_macros).
[eclipse 2]: apply_macros:maplist(=,[1,2],L).
*** Creating auxiliary predicate 'maplist(=)' / 2
L = [1, 2]
Yes (0.00s cpu)


-- 
 Joachim Schimpf              /             phone: +44 20 7594 8187
 IC-Parc, Imperial College   /            mailto:J.Schimpf@ic.ac.uk
 London SW7 2AZ, UK         /    http://www.icparc.ic.ac.uk/eclipse
Received on Fri Mar 15 14:34:11 2002

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