On 2/12/2026 4:58 PM, Henning Hraban Ramm wrote:
Hi,
I got used to declare
userdata = userdata or {}
at the begin of my Lua code, and use userdata.* for “public” variables
and functions, but I recognized that userdata is actually a Lua
datatype, so that might have been a misunderstanding.
Should I/we use userdata, thirddata or a different namespace convention?
moduledata is for modules (like m-*), thirddata is for third party
modules (like t-*) and userdata for users (like hraban)
all other global assignments will trigger a warning (so if you get one
that looks suspicious i.e. is my problem you can tell me)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________