texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Texmacs-dev] Global data store


From: Sam Liddicott
Subject: [Texmacs-dev] Global data store
Date: Wed, 21 Jul 2010 13:31:07 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.8pre) Gecko/20100720 Lanikai/3.1.2pre

Joris;

you may feel ill at the sight of this mis-use:

<assign|global-put|<macro|key|value|<with|the-label|<arg|value>|<label|<arg|key>>>>>
<assign|global-get|<macro|key|<get-binding|<arg|key>|0>>>

GET=<global-get|value-345>
PUT=<global-put|value-345|xlots of stuff>

Certainly it is a wicked way to use <label|...> and the references section.

But it's a great API for whole-document state.

I guess the key could be prefixed with something very un-label like to create a sort of namespace.

Sam

--
Sam's signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]