lua-users home
lua-l archive

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


>From: Dave Gordon <dgordon@algorithmic.com>
>
>The best workaround I've thought of so far is to use an identity 
>function to change an expression into an acceptable form for a `:',
>like this
>
>    m3 = I(m1 * m2):invert()
>
>where I is 
>
>    function I(arg) return arg; end
>
>Anyway, it avoids having to assign sub-expressions to temporary 
>variables.

Very nice! Great solution! Obvious, once you see it :-)
--lhf