Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] unmetafy Re: $var not expanded in ${x?$var}



On Thu, Feb 22, 2024 at 12:35 AM Roman Perepelitsa
<roman.perepelitsa@xxxxxxxxx> wrote:
>
> On Thu, Feb 22, 2024 at 8:23 AM Stephane Chazelas <stephane@xxxxxxxxxxxx> wrote:
> >
> > > +             fwrite(unmetafy(dupstring(str), &num), num, 1, file);
> >
> > Being no C expert, I wonder if it's safe (portable) to set and
> > use num in the same call like that. Is it guaranteed to be done
> > in the right order?
>
> In C, function arguments are evaluated in unspecified order.

Yeah, been too long since I had to think about sequence points.

However, per commentary in the other thread, I'm going to recommend
against using this patch in the first place.  We need to rethink this
whole approach.




Messages sorted by: Reverse Date, Date, Thread, Author