[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: luaproc thought
- From: steve donovan <steve.j.donovan@...>
- Date: Wed, 30 Sep 2009 14:27:25 +0200
On Wed, Sep 30, 2009 at 1:06 PM, steve donovan
> (2) lexical
> substitution is often too stupid.
In this case, this is probably true ;)
With a suitable definition of checkNoUpvalues, one can do this:
Which is less than elegant. Accounting for matching ends and nested
chunks would be nasty.
However, it is probably better API design for the consumer of such
chunks to do the upvalues test itself, in which case chunk is trivial:
BTW, I rather like Mr Storm's 'begin' token and begin-blocks being
allowed to be the argument of the preceding function without
parentheses. Nice for DSLs.