ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Module Namespaces
Date: Mon, 06 Dec 2010 17:48:51 +0100	[thread overview]
Message-ID: <4CFD13F3.9090302@wxs.nl> (raw)
In-Reply-To: <1669D1AA-6C08-41CB-B964-700330D5A921@gmail.com>

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
___________________________________________________________________________________


  parent reply	other threads:[~2010-12-06 16:48 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-18  9:13 luigi scarso
2010-11-18  9:26 ` Philipp Gesang
2010-11-18 18:08 ` Wolfgang Schuster
2010-11-18 18:33   ` luigi scarso
2010-11-29 18:17     ` Wolfgang Schuster
2010-11-29 18:52       ` Philipp Gesang
2010-11-29 19:10         ` luigi scarso
2010-12-06 16:50         ` Hans Hagen
2010-12-08 13:17           ` Philipp Gesang
2010-12-06 16:48       ` Hans Hagen [this message]
2010-11-29 18:19     ` Wolfgang Schuster
2010-11-18 21:03   ` Aditya Mahajan
2010-11-18 21:19     ` luigi scarso
2010-11-18 21:45       ` Hans Hagen
2010-11-18 21:48         ` Aditya Mahajan
2010-11-18 21:52           ` Hans Hagen
2010-11-18 21:59           ` luigi scarso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CFD13F3.9090302@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    --cc=schuster.wolfgang@googlemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).