Re: parser hacking: conditional fields
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: parser hacking: conditional fields
- From: Javier Guerra Giraldez <javier@...>
- Date: 2013年2月28日 23:20:07 -0500
On Thu, Feb 28, 2013 at 6:47 PM, Sven Olsen <sven2718@gmail.com> wrote:
> By chaining ~, I can write statements like the following, which are safe
> even when 'object' or any of it's subtables have a chance of being nil:
>
> color = object~icon~glow~color or white
you can change the metatable of nil to get that behavior.
--
Javier