[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Registering a new function that wraps write(format())
- From: "Chris Percival" <cpercival@...>
- Date: Thu, 21 Feb 2002 14:54:42 -0000
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'. However it gets more complicated because I need to handle a
variable number of arguments, and I just can't get my head around all the
pushing and popping..
Any help is apreciated!
PS i am using Lua 4.0
Chris Percival
Software Engineer
Interaxis Computing Ltd.
DDI: +44 (0)1249 700072
http://www.interaxis.co.uk/