lua-users home
lua-l archive

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


Thanks for the comments. 

> Rather than storing the handler in the registry, you could put it in the
userdata environment 
> table. This allows for more flexibility to have several named handlers.

Is there an example on how to do this? I found this (
http://lua-users.org/wiki/UserDataEnvironmentExamples ) page but it looks
fairly complicated. Is there a simpler example somewhere showing how to use
the userdata environment table?

Thanks-

John