lua-users home
lua-l archive

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


On Thursday 25 August 2005 23:04, Ben Sunshine-Hill wrote:
[...]
> Limiting execution time: This is an OS-specific thing. The effect of
> it, though, should be to set a line hook in the VM when you decide you
> want a script to die suddenly. Then the script will break on the next
> line.

Not meaning to contradict you, but:

  while true do end

No line hooks!

This has to be done at the bytecode level, and AIUI there isn't a debug hook 
for that, so it can't be done from Lua.

-- 
"Curses! Foiled by the chilled dairy treats of righteousness!" --- Earthworm 
Jim (evil)

Attachment: pgpqaO1t3FYJl.pgp
Description: PGP signature