lua-users home
lua-l archive

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


On Tue, Oct 23, 2012 at 10:40 AM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
> If you're willing
>
> (a) to quote the target names
> (b) to squint slightly so that `-` looks like `=`
>
> you can do this:
>
>> getmetatable"".__sub = function(a,b) _ENV[a]=b return b end
>> b=('a'-6)*10
>> =a,b
> 6       60
>
> and therefore this:
>
>  if ( 'passed' - myFunction( x , y , &z ) )
>        && ( 'passed' - mySecondFunction( z, &q ) )


wow.  that's the purest "code as joke" i've seen!


-- 
Javier