Re: [m-users.] Using MR_list_cons inside of C functions

"Zoltan Somogyi" <[email protected]>
Newsgroups gmane.comp.lang.mercury.general
Message-ID <[email protected]>
On 2023-07-20 10:53 +02:00 CEST, "M McDonough" <[email protected]> wrote:
> Wouldn't it be possible to assign the cons head argument to a local
> variable first thing in MR_list_cons? Or would that break other
> things/not fix the same case with the tail argument?

Assign the cons head argument to *what* local variable?
C macros cannot create local variables. Gcc's statement expressions can,
but they are not available in other compilers. This was the issue
that Peter was referring to.

Zoltan.
_______________________________________________
users mailing list
[email protected]
https://lists.mercurylang.org/listinfo/users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.