[Rpm-maint] [rpm-software-management/rpm] RFE: optional one-shot/cached macro expansion (#1155)
Michal Domonkos
notifications at github.com
Thu Apr 16 16:08:36 UTC 2026
dmnks left a comment (rpm-software-management/rpm#1155)
> I'm just wondering if that should be left for the macro creator afterall, ie `mymacro<o>` would actually keep expanding on each use like the result of a `%global` does, and `mymacro<ol>` would really only expand once. The ability to differentiate seems kinda handy, but then I smell potential for lot of confusion as well.
This almost calls for a slightly different (more granular) set of modifiers:
- `mymacro<z>`: expands on each use (deferred, or *lazy* expansion), like the result of `%global`
- `mymacro<m>`: expands on definition but caches (*memoizes*) the result
- `mymacro<zm>`: lazy, memoized expansion (i.e what the original one-shot modifier does)
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1155#issuecomment-4261566792
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/1155/4261566792 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260416/0325e924/attachment.htm>
More information about the Rpm-maint
mailing list