[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: expression to the left of `:'?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 11 Apr 2000 10:08:58 -0300 (EST)
>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