#525464 ferm: please consider implementing variables that are local to an included file

#525464#5
Date:
2009-04-24 18:22:54 UTC
From:
To:
Hi,

when a firewall rule set is built from many small files, it would be
nice to have local and global variables. Currently, most of my small
files start with a { and end with a } to make all variables defined in
the file local.

I am wondering whether it may be a good idea to declare all defined
variables local to the file where they were defined, with an optional
keyword "global" to make a variable global. This would at least save
me from a lot of indenting.

Greetings
Marc

#525464#10
Date:
2010-02-18 20:54:19 UTC
From:
To:
Try {} around the @include statement instead.
#525464#15
Date:
2010-02-19 06:45:55 UTC
From:
To:
What exactly would that do? I would like to have global _and_ local
variables, and my include statements are usually including entire
directories. In my understanding, {} around the include statement
would put variables from all files included into the same namespace
("all global"), which helps, but is not fully what I intended.

Greetings
Marc