tag()

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

tag()

Markus Huber
error: attempt to call global `tag' (a nil value)

How looks the following line if I need it compatible with Lua 4.1?

if tag(arg[1])~=tag(_OUTPUT) then


Thank you


Markus


Reply | Threaded
Open this post in threaded view
|

Re: tag()

Luiz Henrique de Figueiredo
>error: attempt to call global `tag' (a nil value)
>
>How looks the following line if I need it compatible with Lua 4.1?
>
>if tag(arg[1])~=tag(_OUTPUT) then

You have to compare event tables (now called metatables).
Try the compatibility library for tags posted by Roberto (although I haven't
tested it with 4.1w4). Search the lua-l archives for

 Message-ID: <[hidden email]>

--lhf