Am 12.02.26 um 17:32 schrieb Hans Hagen via ntg-context:
On 2/12/2026 4:58 PM, Henning Hraban Ramm wrote:
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)

Thanks for clarification.

Hraban
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to