On Sep 22, 2009, at 8:19 PM, Nobuyoshi Nakada wrote:

> Hi,
>
> At Wed, 23 Sep 2009 11:49:45 +0900,
> Ryan Davis wrote in [ruby-core:25725]:
>> I've looked into adding a global variable. I think it looks better,
>> but it requires modifying the parser to evaluate SOME expressions at
>> parse time and I think that is a can of worms we don't want to open.
>
> I agree it's a worst idea.

Yes, the global variable seems too hard.  Can we get this patch  
applied (using magic comments)?  I will open a ticket if it helps.

>>> +static void
>>> +set_boolean(struct parser_params *parser, int *p, const char *val)
>>
>> Is this really necessary? I'd rather stick to ruby values and remove
>> enable/yes/disable/no.
>
> What do you mean by `ruby values'?

I think just "true" or "false" would be best, but I'm happy with  
something that works.  ;-)

---
Aaron Patterson
http://tenderlovemaking.com