From: Jens-Uwe Morawski <morawski@gmx.net>
Subject: Re: [NTG-context] MP keyval interface
Date: Fri, 18 Oct 2002 11:45:33 +0200 [thread overview]
Message-ID: <20021018114533.016e033e.morawski@gmx.net> (raw)
In-Reply-To: <vg01y6pjh75.fsf@frodo.imf.au.dk>
On 17 Oct 2002 16:03:26 +0200
Emil Hedevang Lohse <emil@imf.au.dk> wrote:
> Jens-Uwe Morawski <morawski@gmx.net> writes:
>
> > Ahoi MP experts,
> >
> > i've tried to implement a keyval-interface in MP.
> >
> > Currently it looks like
> >
> > def keyvalFunc (text t) =
> > begingroup;
> > save status, col ;
> > numeric status; string col ;
> > t ;
> > show status;
> > show col ;
> > endgroup;
> > enddef;
> >
> > keyvalFunc(status=1.0; col="Hallo" ) ;
> >
> > This works, of course, but i would prefer if i could
> > use a comma instead of the ";" to separate the keyval-pairs.
> >
> > Any ideas, how i can make "," be locally like ";"?
>
> Perhaps
>
> begingroup
> let ,=;;
> endgroup
>
> will do the job.
Thanks. I've already tried this. The problem was that it changes
the meaning globally, since MP groups do nothing until one 'save's
variables inside the group. But surprisingly (for me) this works:
begingroup
save , ;
let ,=; ;
endgroup
Jens
_______________________________________________
ntg-context mailing list
ntg-context@ref.ntg.nl
http://ref.ntg.nl/mailman/listinfo/ntg-context
prev parent reply other threads:[~2002-10-18 9:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-17 13:02 Jens-Uwe Morawski
2002-10-17 14:03 ` Emil Hedevang Lohse
2002-10-18 9:45 ` Jens-Uwe Morawski [this message]
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=20021018114533.016e033e.morawski@gmx.net \
--to=morawski@gmx.net \
/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).