[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Registering a new function that wraps write(format())
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 21 Feb 2002 11:59:03 -0300
>Is there an easy way of registering a new function that wraps
>write(format()), but called somthing else like 'myprint' for example. I
>guess I have to call 'format' with all the args, then pass the results to
>'write'.
function printf(...)
write(call(format,arg))
end
printf("Hello from Lua %s at %s\n",_VERSION,date())
--lhf