lua-users home
lua-l archive

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


On Wed, Oct 29, 2014 at 8:01 AM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
> You mean something like this:
>
> error(msg.x_should_lie_between_0_and_255)

Although I think the OP means in the Lua core, so it's more like

#define x_should_lie_between_0_and_25 "x should lie between 0 and 255"

Tricky to do when there's format specifiers in general.