Blogged by Ujihisa. Standard methods of programming and thoughts including Ruby, Vim, LLVM, Haskell and Mathematics written by a Japanese programmer. github/ujihisa

Sunday, September 16, 2012

Eval in Lua

assert(loadstring(string.format('return %s', something)))()

The call of assert is only for debug-friendly.

No comments:

Post a Comment

Followers