Re: syntax error: postfix/infix operator expected

From: Joachim Schimpf <j.schimpf_at_icparc.ic.ac.uk>
Date: Mon 27 May 2002 09:51:55 AM GMT
Message-ID: <3CF201BB.A4D241F@icparc.ic.ac.uk>
Jesper Hansen wrote:
> 
> I have tried to import the library fd as well as fdplex that I used
> before. Now it seems to work, but I get the following message:
> 
> Ambiguous import of minimize / 2 from [fd, fdplex] in module eclipse
> Ambiguous import of #= / 2 from [fd, fdplex] in module eclipse
> Ambiguous import of #= / 2 from [fd, fdplex] in module eclipse
> Ambiguous import of #= / 2 from [fd, fdplex] in module eclipse
> Ambiguous import of #= / 2 from [fd, fdplex] in module eclipse
> Ambiguous import of #= / 2 from [fd, fdplex] in module eclipse
> Ambiguous import of #= / 2 from [fd, fdplex] in module eclipse
> 
> should that concern me?

Yes :-)


> I thought that when importing fdplex both fd and
> eplex was imported?

The message means that both 'fd' and 'fdplex' provide
implementations of minimize/2 and #=/2, and you have to
choose which one you want.

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.


-- 
 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 Mon May 27 10:52:05 2002

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