Re: [m-users.] Mercury macro trouble

Mark Brown <[email protected]> Tue, 4 Jun 2024 10:50:24 +1000
Newsgroups gmane.comp.lang.mercury.general
Message-ID <CAM4AczCVCL5rgocG-gzy-M+6mgpfZOX4LJeA8w0p48ROLFGt6Q@mail.gmail.com>
On Mon, Jun 3, 2024 at 8:03 PM Volker Wysk <[email protected]> wrote:
> the documentation
> should be extended by a sentence or two. Saying that the macro versions are
> problematic and that users should use foreign exports instead - or that they
> should use inline functions, which wrap the macros, like it was discussed.

Adding qualifiers about all of C's relevant quirks would not improve
our documentation in my view. The issue with macros is something I was
taught early on when learning C, and I think it inherently applies to
macros for any language with imperative features. It should be enough
just to say that they are macros.

Cheers,
Mark

>
> Cheers,
> Volker
> _______________________________________________
> users mailing list
> [email protected]
> https://lists.mercurylang.org/listinfo/users
_______________________________________________
users mailing list
[email protected]
https://lists.mercurylang.org/listinfo/users