LoGS variables

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

LoGS variables

Jim Prewett

Hi All,

I've been thinking about how variables work within LoGS.  Vijay and I have
had a couple of offline conversations about this.

I think that the way that variables work right now is broken and needs to
be addressed, re-thought, re-worked, etc.

Right now, for a variable to be set in a match function, it must be
returned as a list of lists of variable and value like:
((FOO 42)(BAR "something")) to set FOO to 42 and BAR to "something".  
These variables are then bound with a progv (creating a dynamic variable
binding, which, I believe is the problem) before the action function is
run.

How else could we, essentially, maintain a stack of these variables (so
that a ruleset could bind a variable, and a rule within that ruleset bind
the variable to a different value) ?

Any ideas?

Jim

James E. Prewett                    [hidden email] [hidden email]
Systems Team Leader           LoGS: http://www.hpc.unm.edu/~download/LoGS/ 
Designated Security Officer         OpenPGP key: pub 1024D/31816D93    
HPC Systems Engineer III   UNM HPC  505.277.8210


_______________________________________________
LoGS-devel mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/logs-devel