[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: matrix operations and temporary objects?
- From: David Manura <dm.lua@...>
- Date: Mon, 3 Aug 2009 22:58:15 -0400
On Mon, Aug 3, 2009 at 4:46 PM, Javier Guerra<javier@guerrag.com> wrote:
> two ideas: (not that i have done anything similar)
>
> 1: parse a user string with the whole expression to build the operating objects:
> ...
> 2: override operators in your userdata; but don't make them calculate,
> make them generate the calculators, a bit like LPEG constructing
> operators
Similar types of things have been done in [1-4].
[1] http://lua-users.org/wiki/ListComprehensions
[2] http://lua-users.org/wiki/ExpressionTemplatesInLua
[3] http://lua-users.org/wiki/SourcePreprocessing
[4] http://met.sourceforge.net/ (C++)