On 29-11-2010 7:17, Wolfgang Schuster wrote:

Am 18.11.2010 um 19:33 schrieb luigi scarso:

I just want to register my namespace(s) to be sure to avoid conflicts
not only for modules but also for lua code

Good idea and it’s not a problem to reserve „lscarso“ for you but i ask
myself which of these tables (luat-ini.lua) are available for users:

userdata      = userdata      or { } -- might be used
thirddata     = thirddata     or { } -- might be used
moduledata    = moduledata    or { } -- might be used
documentdata  = documentdata  or { } -- might be used
parametersets = parametersets or { } -- experimental

document      = document      or { }


userdata      = userdata      or { } -- for users (e.g. functions etc)
thirddata     = thirddata     or { } -- only for third party modules
moduledata    = moduledata    or { } -- only for development team
documentdata  = documentdata  or { } -- for users (e.g. raw data)
parametersets = parametersets or { } -- experimental for team

document      = document      or { } -- only for context itself

thirddata.lscarso = thirddata.lscarso  or { }
thirddata.lscarso.whatever = { }

function thirddata.lscarso.whatever.glasses()
  return "still at bachotek"
end


-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 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