lua-users home
lua-l archive

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


On Wed, 13 Oct 2010 20:09:42 +0200
Henning Diedrich <hd2010@eonblast.com> wrote:


>     require  "socket"
> 
>     function  sleep(sec)
>          socket.select(nil,nil, sec)
>     end
> 
>     sleep(0.2)

if you require socket anyway, why not just using

require 'socket'
socket.sleep(0.2) 

?

startx