lua-users home
lua-l archive

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



On Tue, Aug 13, 2013 at 5:28 PM, William Ahern <william@25thandclement.com> wrote:
But that's rather ugly. Personally I think C's printf is an elegant
interface to a thorny problem for statically typed, compiled languages that
lack a dynamic execution capability at compile time.

I have used LuaGenericCall [1] and I thought it was a rather elegant solution for when you needed quick and easy bindings. (Just as another example of the sprintf design being used.)

[1] http://lua-users.org/wiki/LuaGenericCall