[m-dev.] clueless -- overloaded functor

Nancy Mazur Nancy.Mazur at cs.kuleuven.ac.be
Mon Aug 26 21:23:52 AEST 2002


* Peter Ross <pro at missioncriticalit.com> [2002-08-26 12:36]:
> Hi Nancy,
> 
> The problem is that the Mercury compiler can't distinguish whether you
> mean int:/ and parse_tree:prog_data:sym_name:/.  I think what has
> happened is that you have lost an import which imports the correct
> module which defines '/' (ie not int or parse_tree:prog_data)
> unfortunately my access to the CVS repository is very flakey at the
> moment and I can't check it out more fully.

Hmmm, but I haven't removed any of the imports in handle_options... ?
and both int and prog_data are explicitly imported: 

:- import_module libs__options, libs__globals, parse_tree__prog_io_util.
:- import_module libs__trace_params, check_hlds__unify_proc.
:- import_module parse_tree__prog_data, backend_libs__foreign.
:- import_module char, dir, int, string, map, set, library.

Nancy
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list