lua-users home
lua-l archive

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


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/