[m-rev.] for review: list more new options in NEWS file

Zoltan Somogyi zoltan.somogyi at runbox.com
Fri Jan 21 23:22:53 AEDT 2022


2022-01-21 23:18 GMT+11:00 "Julien Fischer" <jfischer at opturion.com>:
> 
> For review by Zoltan.
> 
> This adds all the new options since 20.06 that I could find based
> on a diff of the 20.06 and ROTD usage messages.  There are two others.
> 
> 1) --warn-potentially-ambiguous-pragma
> 
> We probably need to say something more generally about the changes
> to pragma syntax.  (The new option can be mentioned alongside that.)

I will do that once you have committed this diff.

> 2) --output-stdlib-module
> 
> This is primarily for us and doesn't need to be documented.

Agreed.

> +* By default, the compiler now warns if a program contains a module whose
> +  name shadows that of Mercury standard library module. The warning can
> +  be disabled using the new option `--no-warn-stdlib-shadowing`.

I would say "if the module being compiled has a name that shadows".
You don't want to give the impression that you get this warning when
compiling *other* modules in the same program.

The rest is fine.

Zoltan.


More information about the reviews mailing list