Re: [dev-context] Storing and retrieving two-pass data

2012-04-22 Thread Marco
On 2012-04-22 Hans Hagen pra...@wxs.nl wrote: Wikified: http://wiki.contextgarden.net/System_Macros/Key_Value_Assignments#Two-pass_data Maybe you should add a note about \detupdatase[test][delay=yes] as option. Done.

Re: [dev-context] Storing and retrieving two-pass data

2012-04-20 Thread Marco
On 2012-04-19 Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Hi Wolfgang, thanks for the answer. In the first place I also came up with a similar solution to yours. But that's what I meant by ”manually counting” and wanted to avoid. Apparently I missed the obvious, there is

Re: [dev-context] Storing and retrieving two-pass data

2012-04-19 Thread Wolfgang Schuster
Am 18.04.2012 um 14:15 schrieb Marco: On 2012-04-18 Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: The following works with the current beta, you can find another example in core-dat.mkiv. […] Thanks a lot. One more question: How to address the last element without

[dev-context] Storing and retrieving two-pass data

2012-04-18 Thread Marco
Hi, I am trying to save a string to the .tuc file and to retrieve it in the next run. My attempt: \starttext \startluacode local collected = utilities.storage.allocate() local tobesaved = utilities.storage.allocate() job.register(job.userdata, tobesaved)

Re: [dev-context] Storing and retrieving two-pass data

2012-04-18 Thread Wolfgang Schuster
Am 18.04.2012 um 12:55 schrieb Marco: Hi, I am trying to save a string to the .tuc file and to retrieve it in the next run. My attempt: \starttext \startluacode local collected = utilities.storage.allocate() local tobesaved = utilities.storage.allocate()

Re: [dev-context] Storing and retrieving two-pass data

2012-04-18 Thread Marco
On 2012-04-18 Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: The following works with the current beta, you can find another example in core-dat.mkiv. […] Thanks a lot. One more question: How to address the last element without manually keeping track of how often it was