[m-dev.] 0.13 release: op/3 syntax

Mark Brown mark at cs.mu.OZ.AU
Sat Mar 4 01:07:01 AEDT 2006


On 04-Mar-2006, Peter Schachte <schachte at csse.unimelb.edu.au> wrote:
> > At least with the current scheme you won't find the compiler reporting
> > strange new syntax errors in a previously working module just because
> > you added an import_module directive.
> 
> That wouldn't happen.

I'm afraid it would.  If you've used a nullary function symbol and you
import a module that defines a unary operator with that name, you will
need to enclose it in parentheses.   If you don't the error message will
be quite unhelpful, since the compiler can't figure out much about your
code if it can't even parse it.

Cheers,
Mark.

--------------------------------------------------------------------------
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