Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
1.7
-
None
-
None
-
None
Description
It would be very useful to be able to set variables that are in local macro scope. That is, they do not overwrite "global" variables and are thrown away after macro rendering. This would allow people to build macro libraries that do not clash so easily with each other.
There is some implementation of a "LocalDirective" in experimental/localdirective but I didn't quite get it and it doesn't follow the same syntax as #set. I used a few minutes to hack together this alternative implementation which behaves exactly like #set but it puts things in local context only.
There's only one test case since this is Request-for-Comments type of patch.