[Rpm-maint] [rpm-software-management/rpm] Implement %foreach builtin to iterate over arguments (PR #1828)
Panu Matilainen
notifications at github.com
Wed Nov 24 12:30:57 UTC 2021
Hmm. Perhaps the issue is trying to reuse parametric macro calling conventions on something that isn't one at all, and eg %# and %0 have rather different semantics: here %# is total number of arguments of %foreach, but not the "called" iteration body. Should the iteration body be aware of the foreach argument count at all? And while there's an argument to be made about passing the args as %0 and %1, maybe it'd be clearer to use something else so it's not confused with parametric macros. And maybe somewhere in that direction lies an answer to the level as well: if it's not a parametric macro, then it probably shouldn't bump the level either.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1828#issuecomment-977834361
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20211124/f3db3ef4/attachment.html>
More information about the Rpm-maint
mailing list