In a recent thread, Hans used the document namespace, where I (naively) 
expected userdata:

On Aug 22, 2012, at 6:32 AM, Hans Hagen wrote:

\ctxlua{document.myluadimension = "200pt"}

Is there a reason not to use userdata.myluadimension? Or is 
document.myluadimension safe, because myluadimension is almost certainly not an 
entry used by ConTeXt?  Is using document.myluadimension better "style" here, 
in some sense?  Somewhere I had gotten the idea that if a ConTeXt user wanted 
to store something in Lua, they ought to store it in the userdata namespace.

Thanks,

Michael

________________________________

This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to