[Top][All Lists]

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

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

From: Vijay Lakshminarayanan
Subject: Re: [Logs-devel] fixing (removing) dynamically bound variables
Date: Fri, 12 Jan 2007 23:58:54 -0600

On 1/10/07, Jim Prewett <address@hidden> wrote:

> ((lambda (message environment)
>   (declare (ignorable environment))
>   (funcall action message))
> message
> environment)

I'm not quite sure what you mean.

I do believe I was originally underestimating the amount of work required
:)  I think for what I'm proposing, you would have to *CHANGE THE API* for
all rule and ruleset match functions, rule action functions, rule and
ruleset delete rule functions so that they all accepted the environment as
an argument.  All(?) of the functions that interact with those match, etc.
functions would also have to be changed.

((lambda (x) (print x)) "hello, world!") is just a fancy way of
FUNCALLing the lambda function.  This way is more efficient (the
compiler just inlines it) is what Paul Graham says in On-Lisp.

I think that given an API change, we won't need to jump through the hoops
you specified.  I think our confusion here is due to my original
oversimplification :)

I agree.  An API change is the best option.  I can't believe I even
came up with such an outlandish suggestion.  I blame CL.  What I
suggested wouldn't be possible in another language (Perl is the only
other mainstream language I don't know, so I wouldn't know about it)

I'll check out the latest versions of LoGS tomorrow.


reply via email to

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