[m-dev.] misleading error message

Peter Schachte schachte at cs.mu.OZ.AU
Tue Jul 19 17:14:54 AEST 2005


Hi,

I just got this error message from the compiler:

    delaytest.m:045: Error: some but not all arguments have modes:
    first(dvar(int) :: ia, dvar(int) :: ia, dvar(int) : ia, dvar(int) : ia).

OK, it's right, but it took me a while to figure out why.  Single and
double colons do look pretty similar.  It would be helpful if the
compiler gave an error message about the single colon terms in there,
rather than (or at least before) what it does say.

-- 
Peter Schachte              Whoso would be a man, must be a nonconformist.
schachte at cs.mu.OZ.AU            -- Ralph Waldo Emerson 
www.cs.mu.oz.au/~schachte/  
Phone: +61 3 8344 1338      
--------------------------------------------------------------------------
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