lua-users home
lua-l archive

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

On 9/14/05, Mark Hamburg <> wrote:
> Yes, but one could get the length of the first item by writing #(...).
> It seems like #... would be fairly useful assuming the implementation has
> ready access to the length of ...
> That being said, I also understand that this would further complicate the
> grammar since ... wouldn't always be an expression. It would essentially
> require the introduction of a non-terminal for
> expression-other-than-dotdotdot.

Why not simply tweak the compiler so that it recognizes #{...} as a
special case, and evaluates the expression without constructing a