Eero Saynatkari
10/16/2006 6:44:00 AM
On 2006.10.16 11:45, Rick DeNatale wrote:
> On 10/15/06, Rick DeNatale <rick.denatale@gmail.com> wrote:
> >On 10/15/06, Peter Lynch <argnosis@yahoo.com.au> wrote:
>
> As an afterthought, having answered your question without analysis of
> whether this is a good thing, there are probably saner approaches, two
> which come to mind are:
>
> 1. defining the condition separately as a function or a lambda.
> 2. defining it as a string and using one of the eval family of
> functions to evaluate it.
Definitely. The best thing to do would be to define a top-level
method for it, #require the file and then use the method in the
conditional. Maintaining the proposed scheme would probably be
a nightmare.