ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Emil Hedevang Lohse <emil@imf.au.dk>
Cc: ConTeXt <ntg-context@ntg.nl>
Subject: Re: [NTG-context] MP keyval interface
Date: 17 Oct 2002 16:03:26 +0200	[thread overview]
Message-ID: <vg01y6pjh75.fsf@frodo.imf.au.dk> (raw)
In-Reply-To: <20021017150230.21a493b4.morawski@gmx.net>

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.


-- 
Emil Hedevang Lohse <http://home.imf.au.dk/emil/> 

Alle spørgsmål er lige dumme. 
Og spørgsmålet "Kan ænder flyve?" er ikke dumt.
_______________________________________________
ntg-context mailing list
ntg-context@ref.ntg.nl
http://ref.ntg.nl/mailman/listinfo/ntg-context


  reply	other threads:[~2002-10-17 14:03 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 [this message]
2002-10-18  9:45   ` Jens-Uwe Morawski

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=vg01y6pjh75.fsf@frodo.imf.au.dk \
    --to=emil@imf.au.dk \
    --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).