lua-users home
lua-l archive

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


Hello steve,

Sunday, May 10, 2009, 5:45:10 PM, you wrote:

> WIthout the {} check, then people can call functions you provide, but
> can't write a loop.

s = "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
s = s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s
s = s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s
s = s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s
s = s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s
s = string.gsub(s, "!.*x","")

> If you don't want to be too restrictive, then debug.sethook is
> probably the way to go. Set it to callback every n (some large number)
> of instructions and take appropriate action.

the only safe way is use of windows thread and killing it

-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin@gmail.com