logs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Logs-devel] fixing (removing) dynamically bound variables


From: Jim Prewett
Subject: Re: [Logs-devel] fixing (removing) dynamically bound variables
Date: Sun, 7 Jan 2007 00:03:52 -0700 (MST)

> How would we pass the ENVIRONMENT to the actions?

I was thinking of modifying run-actions in rule.lisp in partiucular to 
remove the IN-GIVEN-ENVIRONMENT references and instead funcall the action 
functions with an additional argument: This is the simplest thing I can 
think of to do.

I also think that such a change would make testing a ruleset simpler as, 
instead of having variables bound, they would be passed in in a 
predictable way.

It should also make all of that scoping stuff we were talking about 
resolve itself very nicely.  Variables bound by in/the Lisp code would be 
clearly separated from things bound by the match functions.  Lisp already 
does its scoping right and LoGS already maintains the ENVIRONMENT list 
correctly; My concern before was in how these "variables" could co-exist 
in the sensibly in the same namespace, which, possibly, they cannot in any 
sensible way.

I've done a little playing with this and I think the modifications should 
be pretty small.

Jim





reply via email to

[Prev in Thread] Current Thread [Next in Thread]