ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: [dev-context] Storing and retrieving two-pass data
Date: Fri, 20 Apr 2012 19:55:32 +0200	[thread overview]
Message-ID: <CAG5iGsCXVMQhLpjRK-Uc7ENeNAGG756U_WOaHjmJxg6ucCM=tQ@mail.gmail.com> (raw)
In-Reply-To: <20120420173056.07d856ed@Zewz>

On Fri, Apr 20, 2012 at 5:30 PM, Marco <netuse@lavabit.com> wrote:
> On 2012-04-19 Wolfgang Schuster <schuster.wolfgang@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 no special magic needed:
>
> % doesn't seem to be necessary
> % \definedataset [test]
>
> \setdataset [test] [foo] [foo=first]
> \setdataset [test] [foo] [foo=second]
>
> \setdataset [test] [bar] [bar=first]
> \setdataset [test] [bar] [bar=second]
> \setdataset [test] [bar] [bar=third]
>
> \starttext
>        foo is: \datasetvariable{test}{foo}{foo}\crlf
>        bar is: \datasetvariable{test}{bar}{bar}
> \stoptext
>
> Wikified:
> http://wiki.contextgarden.net/System_Macros/Key_Value_Assignments#Two-pass_data
"""
Two-pass data is data that can be accessed before it has been created.
"""
Hm how can  something be read "before* being created ?

(super-luminal neutrino  is not anymore a valid answer ...)
-- 
luigi
___________________________________________________________________________________
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	other threads:[~2012-04-20 17:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20120418125518.2e8a77c9@Zewz>
     [not found] ` <8219268B-17E3-4D69-93A7-EAD24E452BF6@googlemail.com>
     [not found]   ` <20120418141553.7cb36e07@Zewz>
     [not found]     ` <36695353-920B-4AE1-B5BD-8CB7CD172B93@googlemail.com>
     [not found]       ` <20120420173056.07d856ed@Zewz>
2012-04-20 17:55         ` luigi scarso [this message]
2012-04-20 18:32           ` Marco
2012-04-20 18:43             ` 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='CAG5iGsCXVMQhLpjRK-Uc7ENeNAGG756U_WOaHjmJxg6ucCM=tQ@mail.gmail.com' \
    --to=luigi.scarso@gmail.com \
    --cc=ntg-context@ntg.nl \
    /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).