[Rpm-maint] [rpm-software-management/rpm] Implement a real stack for parametric macro locals (#1409)

Panu Matilainen notifications at github.com
Fri Oct 23 09:19:02 UTC 2020


Right, I forgot that user-defined scoped macros follow different rules from automatic macros as it is. Which is of course undocumented behavior, like most of all this...

What's implemented here is a strict local stack for parametric macros, so no, it no longer expands to `hello` unless you change the `%define` to `%global`. So I guess this would be more drastic change than I initially thought - and I admit this isn't all that thoroughly thought out in the first place, hence RFC only.

Breaking things is not a goal here, eliminating buggy and ambiguous behavior is. But I suppose we should really start by defining and documenting the expected behavior wrt scopes and all...

-- 
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/1409#issuecomment-715216459
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20201023/b2cd9bb9/attachment.html>


More information about the Rpm-maint mailing list